Wikibooks
plwikibooks
https://pl.wikibooks.org/wiki/Wikibooks:Strona_g%C5%82%C3%B3wna
MediaWiki 1.39.0-wmf.21
first-letter
Media
Specjalna
Dyskusja
Wikipedysta
Dyskusja wikipedysty
Wikibooks
Dyskusja Wikibooks
Plik
Dyskusja pliku
MediaWiki
Dyskusja MediaWiki
Szablon
Dyskusja szablonu
Pomoc
Dyskusja pomocy
Kategoria
Dyskusja kategorii
Wikijunior
Dyskusja Wikijuniora
TimedText
TimedText talk
Moduł
Dyskusja modułu
Gadżet
Dyskusja gadżetu
Definicja gadżetu
Dyskusja definicji gadżetu
Wikipedysta:Persino/vector-2022.css
2
58229
435394
435389
2022-07-22T12:08:06Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
2i7qzgc6grbtqscerb5499qn65ma00p
435395
435394
2022-07-22T12:14:50Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
kh36bb8macjq8n3u3eg6omvcq5359u9
435396
435395
2022-07-22T12:31:50Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
043d5e5pelvxhzoy758ul24adqksvqp
435397
435396
2022-07-22T12:35:21Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
n8ktd8hygjdjcfzr0bo8jhlbnps1tes
435398
435397
2022-07-22T12:36:28Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
sz3bqutq6e51tl4axazr8o6dhrpv9s3
435399
435398
2022-07-22T12:41:14Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
html.client-nojs body.skin-vector-search-vue .sidebar-toc .sidebar-toc-toggle{
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
td6zhexaxxzwy8lvr3op2c7k3jsp48f
435400
435399
2022-07-22T12:42:18Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
sz3bqutq6e51tl4axazr8o6dhrpv9s3
435401
435400
2022-07-22T12:54:26Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:calc( 100% - 54px );
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
sxg207wkulsj3h2ejbqdaa1gdfun2de
435402
435401
2022-07-22T12:55:55Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:calc( 100% - 54px ) !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
aypmkzh6mzhk3pckyccm4qjx4ocjcr5
435403
435402
2022-07-22T13:01:30Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:calc( 100vh - 54px - 189px ) !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
nxpke7kevhuzump74kdty8s32d9no2b
435404
435403
2022-07-22T13:03:07Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:calc( 100vh - 54px ) !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
7k0bad9dsr4xwnmldeeuzkxmaojcmgs
435405
435404
2022-07-22T13:04:33Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:calc( 100vh - 54px ) !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
rcd5297y9tlt0e9jhdai6rri82e6np3
435406
435405
2022-07-22T13:10:44Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container{
align-self:start;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
93ogmc41izil4ihc8li4afyg0f2em6q
435407
435406
2022-07-22T13:12:59Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:calc( 100vh - 54px );
height:auto;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
6collkl9teo4ila3azq7z9orprvjpv2
435408
435407
2022-07-22T13:15:41Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:calc( 100vh - 54px );
height:auto;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:5px !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
6b6rf02fjgjwxblc2td0nx38i6fs2a8
435409
435408
2022-07-22T13:20:06Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:calc( 100% - 54px );
height:auto;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:5px !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
pehk3j9edjkghozqrr0mwmodp79fiop
435410
435409
2022-07-22T13:23:16Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:fit-content;
height:auto;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:5px !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
ehlektyedcovqcqt0osshjw498aa0f0
435411
435410
2022-07-22T13:25:20Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:calc( 100vh - 54px );
height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:5px !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
dm345bx51q5bcmpy2d0unuc13j2tt7x
435412
435411
2022-07-22T13:39:00Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container{
max-height:calc( 100vh - 54px );
height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:5px !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
e4qymwqjrkdm7061hpo4zpmzje1rxvl
435413
435412
2022-07-22T13:39:55Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:5px !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
hjwe1jecwjselxc2kmm09d2acy6q5c9
435414
435413
2022-07-22T13:57:19Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px !important;
top:0;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
77sy0wn8btx85dzs4eym7t6roufaay8
435415
435414
2022-07-22T14:03:57Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px !important;
top:0;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:sticky;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
abxk2vn1q42wq3vubai3h8ql7ob467k
435416
435415
2022-07-22T14:05:51Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:sticky;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
mooo6u25rkh3tu7ba6qbec9asxwys33
435417
435416
2022-07-22T14:11:41Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px !important;
top:0;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
77sy0wn8btx85dzs4eym7t6roufaay8
435418
435417
2022-07-22T14:14:49Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px !important;
top:0;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:absolute;
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
fepzku8oqfrcdt756jdu1f5p46vre5t
435419
435418
2022-07-22T14:16:41Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px !important;
top:0;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
rirx2or54alfyox97f3rkii6s04za75
435420
435419
2022-07-22T14:19:24Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
rusxhjo40o9gkhjqmvu4t65hdxfjpn2
435421
435420
2022-07-22T14:30:05Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
max-height:calc( 100vh - 59px );
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
pr531ur18w94yebalh0hb8rvh3mrp3p
435422
435421
2022-07-22T14:35:28Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:5px;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
232seujf5qiuafog4drwk5oy6ljkme5
435423
435422
2022-07-22T14:35:55Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
r0zudloqlqmnkw7oc727wy1o5ine8yt
435424
435423
2022-07-22T14:43:43Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container:not(.sidebar_obecny) .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
9fczvldfic80iy8l7fhuleoc8nb3pv9
435425
435424
2022-07-22T14:45:52Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
/*body.skin-vector-search-vue .mw-workspace-container{
margin-right:0;
margin-left:/*140px*//*0;
min-width:auto;
max-width:100%;
box-sizing:border-box;
}*/
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
oorg5i4zp79qenl0vvplnqtuqxlpmv4
435426
435425
2022-07-22T15:26:51Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
height:0;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
height:100%;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
gk7g5h49xc56chduya4cxutgvuur96j
435427
435426
2022-07-22T15:30:15Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
display:none;
transition:display 250ms ease-out;
transition-property: display;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
display:block;
transition:display 250ms ease-out;
transition-property: display;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
en0w8n6r0d6tdocy0yuu5cfwrv3hbmp
435428
435427
2022-07-22T15:40:16Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
animation-name: mw-left-checked;
animation-duration: 250ms;
animation-delay: 0ms;
}
@keyframes mw-left-checked{
0% {
display:block;
}
100% {
display:none;
}
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
animation-name: mw-left-not-checked;
animation-duration: 250ms;
animation-delay: 0ms;
}
@keyframes mw-left-not-checked{
0% {
display:none;
}
100% {
display:block;
}
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
9pcyv3gz16a7phzk7fttbu2r5zqftys
435429
435428
2022-07-22T15:48:13Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:absolute;
animation-name: mw-left-checked;
animation-duration: 250ms;
animation-delay: 0ms;
}
@keyframes mw-left-checked{
0% {
display:block;
}
25%{
display:block;
}
50%{
display:block;
}
75%{
display:block;
}
100% {
display:none;
}
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
left:0;
position:relative;
animation-name: mw-left-not-checked;
animation-duration: 250ms;
animation-delay: 0ms;
}
@keyframes mw-left-not-checked{
0% {
display:none;
}
25%{
display:none;
}
50%{
display:none;
}
75%{
display:none;
}
100% {
display:block;
}
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
drwrzzp2p4miwkez2luwg70amp4wcsv
435430
435429
2022-07-22T15:55:21Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
position:relative;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0 5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
inddyzy2jtttedrgguewamn1kxzx4qg
435431
435430
2022-07-22T16:33:23Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
position:relative;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0;
margin-left:5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
i9mn9wbwth5i4nklzqmzg7cnd3eupz9
435432
435431
2022-07-22T16:48:48Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading{
text-shadow:0 2px 0 #FFF,0 3px 0 #AAA,0 3px 4px #AAA;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
position:relative;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0;
margin-left:5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
4sp9jk7ujo8gfeexgatt7v42jf3nv5y
435433
435432
2022-07-22T16:51:56Z
Persino
2851
css
text/css
body.skin-vector-search-vue .mw-page-container{
max-width:100%;
min-width:988px;
padding-left:0;
padding-right:0;
border-left: 0;
border-right: 0;
box-sizing:border-box;
display:table;
width:100%;
background-color:white;
height:auto;
}
body.skin-vector-search-vue .mw-content-container{
max-width:100%;
box-sizing:border-box;
padding-left:0 !important;
}
body.skin-vector-search-vue .mw-logo-container{
margin-left: 10px;
margin-right:0;
}
body.skin-vector-search-vue #p-lang-btn-label{
font-size:14px !important;
line-height:1.2em !important;
white-space:nowrap;
}
body.skin-vector-search-vue .mw-indicators{
font-size: calc( 14px * 0.875 );
line-height: 2.0em;
white-space:nowrap;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{
display:grid;
grid: 'aa aa aa' auto
'dd dd dd' auto
'bb bb bb' auto
'cc cc cc' auto
'.. .. ff' auto
'ee ee ee' auto
/ minmax(auto,1fr) auto auto
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{
grid-area:dd;
margin:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
grid-area:cc;
top:0;
width:auto !important;
height:auto !important;
margin:0;
margin-right:10px;
box-sizing:border-box;
border-bottom: 1px solid #a2a9b1;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{
grid-area:ff;
height:20px;
width:auto;
height:auto;
margin-left:auto;
top:0;
margin: auto 5px 0 5px;
padding-bottom:8px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{
display:grid;
grid: 'aa bb' auto
/ minmax(auto,1fr) auto;
width:100%;
min-height: 46px;
box-sizing: border-box;
position: relative;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{
display:block !important;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
margin-bottom:2px;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom: 0;
margin-top: auto;
border-bottom: none;
padding-left: 3px;
padding-right: 3px;
border-bottom: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{
grid-area: bb;
width: auto;
height: 1.6em;
margin-bottom: 5px;
margin-top: auto;
margin-right: 5px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{
padding-bottom:2px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:auto;
margin-top: auto;
margin-bottom:0;
padding: 0 3px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
display:grid;
grid:'aa bb' auto
/ minmax(auto,100%) auto;
border-bottom:1px solid #a2a9b1;
margin-top:auto;
margin-bottom:0;
min-height:46px;
box-sizing:border-box;
position:relative;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover),
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){
grid-area:aa;
width:100%;
max-width:fit-content;
max-width:-moz-fit-content;
margin-bottom:0;
margin-top:auto;
border-bottom:none;
padding-left:3px;
padding-right:3px;
border-bottom:0;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{
grid-area:bb;
right:0;
margin:0;
height:auto;
width:100%;
margin:auto 0 0 auto;
padding: 0 10px;
box-sizing:border-box;
}
body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator,
body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{
padding: 2px 0 2px 0;
margin: auto 0 0 0;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content,
body.skin-vector-search-vue.action-view.ns-special #content,
body.skin-vector-search-vue:not(.action-view) #content{
display:grid;
grid:'aa' auto
'cc' auto
'bb' auto
'dd' auto
'ee' auto
/ auto;
width:100%;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top,
body.skin-vector-search-vue.action-view.ns-special #content > #top,
body.skin-vector-search-vue:not(.action-view) #content > #top{
grid-area:aa;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice,
body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice,
body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{
grid-area:bb;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar,
body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar,
body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{
grid-area:cc;
}
body.skin-vector-search-vue .mw-body-header::after{
display:none;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header,
body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header,
body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{
grid-area:dd;
margin:0;
margin-right:10px;
width:auto;
padding-bottom:0;
}
body.skin-vector-search-vue .mw-body-subheader{
border-bottom:0;
}
/*body.skin-vector-search-vue #siteSub,*/
body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{
display:none;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
body.skin-vector-search-vue .firstHeading{
text-shadow:0 2px 0 #FFF,0 3px 0 #AAA,0 3px 4px #AAA;
}
body.skin-vector-search-vue .firstHeading > .plainlinks{
text-shadow:none;
}
body.skin-vector-search-vue .firstHeading:not(:hover){
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
border-bottom:0;
}
body.skin-vector-search-vue .firstHeading:hover{
display:block;
border:1px solid #eaecf0;
border-radius:10px;
background-color:white;
position:absolute;
top:5px;
left:-3px;
width:auto;
padding:5px;
z-index:1 !important;
}
body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{
margin: 2px 0 3px 0;
min-height:1.6em;
}
body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader,
body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{
margin: 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{
margin:0;
margin-top: -2.0em;
font-size: 1.2em;
height: 2em;
margin-bottom:5px;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{
display:table !important;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{
margin-left:5px;
margin-right:3px;
display:block;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{
display:block;
}
body.skin-vector-search-vue .firstHeading,
body.skin-vector-search-vue .firstHeading > .plainlinks{
max-width:100%;
width:auto;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent,
body.skin-vector-search-vue.action-view.ns-special #content #bodyContent,
body.skin-vector-search-vue:not(.action-view) #content #bodyContent{
grid-area:ee;
}
body.skin-vector-search-vue .mw-article-toolbar-container,
body.skin-vector-search-vue .mw-content-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-page-container-inner{
display:grid;
grid:'aa aa aa' auto
'bb cc dd' auto
'bb ee ee' minmax(auto,1fr)
/ auto minmax(auto,1fr) auto;
width:auto;
box-sizing:border-box;
row-gap:0;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-header{
grid-area:aa;
}
body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{
grid-area:bb;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{
grid-area:cc;
grid-column:auto !important;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{
grid-area:dd;
}
body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{
grid-area:ee;
}
/**/
body.skin-vector-search-vue .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content,
body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{
width:100%;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views {
display: block;
}
body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item {
display: none;
}
body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{
margin-left:0;
background-color: white;
padding:0;
margin-top:0;
}
body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
display:block;
}
body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{
visibility: visible;
opacity: 1;
transform: none;
}
body.skin-vector-search-vue .ui-dialog{
font-size:75%;
}
body.skin-vector-search-vue .mw-body-content .error{
font-size:96%;
}
body.skin-vector-search-vue.action-purge .firstHeading{
padding-bottom:3px;
}
body.skin-vector-search-vue .firstHeading .plainlinks{
line-height:1.2em !important;
}
body.skin-vector-search-vue #mw-panel{
width:140px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{
display:block;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{
width:0;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{
width:140px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
position:absolute;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{
position:relative;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:-140px;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{
left:0;
position:relative;
width:140px;
transition: left 250ms ease-out;
transition-property: left;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
max-width:100%;
box-sizing:border-box;
position:relative;
z-index:1;
}
body.skin-vector-search-vue .mw-footer-container{
padding-top:0;
}
body.skin-vector-search-vue .mw-content-container > .mw-body{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{
margin-left:0;
margin-right:0;
}
body.skin-vector-search-vue .mw-footer-container .mw-footer{
margin-left:10px;
margin-right:0;
padding: 0.75em 5px;
}
body.skin-vector-search-vue .mw-header {
display:flex;
flex-direction: row;
margin: 8px 5px 0 5px;
}
body.skin-vector-search-vue .mw-workspace-container #mw-head{
min-width:832px;
margin-right:5px;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-logo-icon{
display:block;
}
body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item {
display: block;
}
body.skin-vector-search-vue .vector-search-box-collapses > div{
display:block;
}
body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{
display:none;
}
body.skin-vector-search-vue .vector-sticky-header{
height:3.2em;
padding: 6px 25px;
display:flex;
flex-direction:row;
min-width:700px;
margin-left:auto;
margin-right:auto;
width:90%;
text-align:center;
box-sizing:border-box;
}
@media screen and (max-width: 830px){
body.skin-vector-search-vue .vector-sticky-header{
display: none;
}
}
html.client-nojs body.skin-vector-search-vue .vector-sticky-header{
display:none !important;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion{
padding-top:4px;
padding-bottom:4px;
text-align:left;
}
body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{
flex-basis: 460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{
width: 36px;
height: 36px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{
left:13px;
width:37px;
}
body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input,
body.skin-vector-search-vue .vector-search-box,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form,
body.skin-vector-search-vue #p-search #searchform #simpleSearch{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper,
body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{
width:calc( 460px - 64px);
}
body.skin-vector-search-vue .wvui-button{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
height:30px;
min-height:30px;
width:64px;
border-left:0;
box-sizing:border-box;
}
body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{
margin-left:10px;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search__wrapper{
margin-right:0;
}
body.skin-vector-search-vue .wvui-typeahead-suggestion__title{
display: table-cell;
vertical-align: middle;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{
margin-left:0;
box-sizing:border-box;
width:460px;
}
.client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{
left:0;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{
margin-left:10px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-search-box-vue .searchButton{
background-size: 20px auto;
}
.client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{
padding-left:36px;
padding-right:8px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input {
border-right-color: #a2a9b1;
width:460px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{
border-right-color: #a2a9b1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input {
width: 460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input {
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{
position:relative;
padding-left: 62px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{
width:460px;
}
body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
top:30px;
box-sizing:border-box;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:calc( 460px - 64px );
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{
width:460px;
}
body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{
max-width:460px;
}
body.skin-vector-search-vue .mw-logo{
min-width:144px;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button,
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{
display:block;
width:64px;
z-index:1;
}
body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{
display:none;
}
body.skin-vector-search-vue .wvui-button{
padding-left:0;
padding-right:0;
}
body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{
font-size:14px;
}
body.skin-vector-search-vue .mw-sidebar-action{
display:none;
}
body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{
font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif;
font-stretch:normal;
font-variant:normal;
font-style:normal;
font-weight:normal;
font-size-adjust:none;
letter-spacing:normal;
word-spacing:normal;
text-align:left;
word-wrap:break-word;
hyphens:auto;
}
body.skin-vector-search-vue{
font-size:calc( 14px * 1.042 );
line-height:1.2em;
background-color:#ffffff;
}
body.skin-vector-search-vue .mw-editsection{
font-size:12px;
line-height:1.2em;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub,
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty,
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty),
body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2,
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){
margin:2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty{
margin:2px 0 3px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{
margin:10px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty),
body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{
margin: 2px 0 2px 0;
}
body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){
margin: 2px 0 3px 0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub,
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{
margin:0;
}
body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{
margin-top:0;
}
body.skin-vector-search-vue.action-view #pwContent,
body.skin-vector-search-vue:not(.action-view) #pwContent,
body.skin-vector-search-vue.action-view .subpages,
body.skin-vector-search-vue:not(.action-view) .subpages{
margin:0;
font-size:12px;
line-height:1.2em;
margin-bottom:6px;
}
body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox,
body.skin-vector-search-vue:not(.action-view) .warningbox{
margin:10px 0;
}
body.skin-vector-search-vue #mw-previewheader{
margin-top:14px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-userconfigpublic{
margin-top:8px;
}
body.skin-vector-search-vue .mw-contributions-user-tools{
margin-bottom:6px;
}
body.skin-vector-search-vue:not(.action-view) .mw-body,
body.skin-vector-search-vue.action-view.ns-special .mw-body{
padding: 8px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body,
body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{
padding: 4px 0 10px 8px;
position:relative;
z-index:0;
}
body.skin-vector-search-vue #centralNotice:not(:empty){
margin:10px 8px 8px 8px;
}
body.skin-vector-search-vue .mw-content-container{
min-width:848px;
}
body.skin-vector-search-vue #content{
margin-left:0px;
min-width:848px;
box-sizing:border-box;
}
body.skin-vector-search-vue #mw-content-text{
clear:both;
}
body.skin-vector-search-vue #bodyContent{
box-sizing:border-box;
min-width:832px;
height:auto;
clear:both;
padding: 0 13px 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{
padding: 0 5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{
margin-right:3px !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{
overflow:auto;
overflow-x:auto;
overflow-y:visible;
min-width:822px;
box-sizing:border-box;
margin-bottom:5px;
display:block;
height:auto;
position:relative;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{
margin-bottom:0 !important;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{
padding-bottom:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){
padding-bottom:0;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y,
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{
padding-right:5px;
}
body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y),
body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){
padding-right:0;
}
body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type,
body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{
margin-top:0 !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{
margin-top:5px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{
margin-top:0px !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{
margin-top:0.5em !important;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .tdg-editscreen-main{
margin-top:9px;
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{
margin: 0 0 4px 0;
}
body.skin-vector-search-vue .mw-rcfilters-head{
margin-bottom:15px;
}
body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{
min-height: 280px;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{
margin-top:0;
box-sizing:border-box;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{
margin-top:10px !important;
box-sizing:border-box !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){
margin-top:3px !important;
margin-bottom:3px !important;
}
body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{
margin-top:3px !important;
margin-bottom:0 !important;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{
display:table;
box-sizing:border-box;
position:relative;
width:100%;
height:auto;
margin:0;
margin-bottom:5px;
border-spacing:0;
padding:0;
border-collapse:collapse;
border:0;
}
body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{
margin:0;
}
body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){
margin: 5px 0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{
margin-top:0.3em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{
margin-top:0.5em;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type,
body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{
margin-bottom:0.3em;
}
body.skin-vector-search-vue pre{
margin-top:8px;
margin-bottom:8px;
padding:11px;
background-color: #f8f9fa;
color: #000;
border: 1px solid #eaecf0;
box-sizing:border-box;
}
body.skin-vector-search-vue div.mw-highlight > pre{
margin-top:8px;
margin-bottom:8px;
}
body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:5px;
margin-bottom:0;
}
body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:5px;
}
body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-top:0px;
margin-bottom:0;
}
body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{
margin-bottom:0 !important;
margin-top:0 !important;
}
body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{
margin:0 0 8px 0;
}
body.skin-vector-search-vue .mw-body > h1{
margin-bottom:0;
}
body.skin-vector-search-vue #central-auth-images{
display:none;
}
body.skin-vector-search-vue .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{
margin-top:6px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .mw-message-box{
margin-top:10px;
margin-bottom:10px;
}
body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box,
body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{
margin-bottom:10px;
margin-top:0;
}
body.skin-vector-search-vue #wikiPreview.ontop{
margin-bottom:5px;
}
body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{
max-width:100%;
}
body.skin-vector-search-vue .previewnote{
margin-bottom:10px;
}
body.skin-vector-search-vue form#editform{
margin-top:5px;
margin-bottom:5px;
}
body.skin-vector-search-vue #editform::after{
display:block;
}
body.skin-vector-search-vue .editOptions{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{
margin-bottom:10px;
}
body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child,
body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{
margin-bottom:0;
margin-top:0;
}
body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{
margin-top:15px !important;
}
body.skin-vector-search-vue .mw-category-generated{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-editfooter-list{
margin-bottom:0;
}
body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .vector-menu-portal {
margin: 0;
margin-left:5px;
padding: 0.2em 0 0 0;
direction: ltr;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{
margin-left: 3px;
}
body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content {
margin-left: 0;
}
body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{
margin-left:3px;
}
body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{
margin-top:0;
}
body.skin-vector-search-vue .mw-delete-warning-revisions{
display:block;
margin-top:10px;
}
body.skin-vector-search-vue #p-lang-btn-label{
min-height:25px;
padding:5px 25px 3px 5px;
}
body.skin-vector-search-vue .mw-delete-editreasons + h2,
body.skin-vector-search-vue .mw-protect-editreasons + h2{
margin-top:0 !important;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right:0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{
margin-right: 0;
padding-right:0;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right:4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{
margin-right: 4px;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{
display: flex;
content: '';
width: auto;
flex-direction: row;
flex: 1 1 auto;
box-sizing:border-box;
}
body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{
right:0;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
direction: rtl;
align-self:auto;
background-color:white;
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png');
z-index:1;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
margin-right:8px;
margin-left:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container{
max-width:200px;
box-sizing:border-box;
position:static;
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{
width:200px;
max-height:100%;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
width:200px;
direction: rtl;
overflow:hidden;
margin-right:0;
margin-left:0;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{
margin-top:0 !important;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:0 !important;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
margin-top:54px;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{
direction:ltr;
}
html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
position:sticky;
top:5px;
}
html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
top:0;
position:absolute;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{
max-width:700px;
min-width:200px;
display:block;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{
display:none;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){
width:200px;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{
width:auto;
transition: width 250ms ease-out;
transition-property: width;
transition-duration: 250ms;
transition-timing-function: ease-out;
transition-delay: 0s;
}
body.skin-vector-search-vue .mw-article-toolbar-container{
margin-left:0 !important;
}
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container {
margin-left: 0 !important;
}
body.skin-vector-search-vue .vector-body h1,
body.skin-vector-search-vue .vector-body h2,
body.skin-vector-search-vue .vector-body h3,
body.skin-vector-search-vue .vector-body h4,
body.skin-vector-search-vue .vector-body h5,
body.skin-vector-search-vue .vector-body h6{
margin-top:0.8em;
}
body.skin-vector-search-vue .mw-history-subtitle{
margin-bottom:6px;
}
body.skin-vector-search-vue .printfooter{
display:block;
margin: 5px 0;
padding:5px;
white-space:normal;
border: 1px solid #eaecf0;
box-sizing:border-box;
background-color: white;
}
.client-js body.skin-vector-search-vue .mw-search-form-wrapper {
min-height: 112px;
}
body.skin-vector-search-vue .noarticletext{
margin-bottom:5px;
}
body.skin-vector-search-vue .mw-menu-active{
background-color:#E6E6FA;
}
body.skin-vector-search-vue .mw-menu-inactive{
background-color:#EEE8AA;
}
body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{
padding-left:5px !important;
padding-right:5px !important;
margin-left:0 !important;
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
margin-top:3px;
}
body.skin-vector-search-vue .mw-items-active{
display:block;
border-radius:5px;
border:1px solid #a2a9b1;
padding: 0 5px;
margin-top:2px;
}
body.skin-vector-search-vue .mw-items-active > ul{
margin-top:0;
}
body.skin-vector-search-vue .mw-items-inactive{
display:none;
}
body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{
margin-left:0px !important;
}
qvuin12g108xkgzn5eo0lbpkbmlw3qp
Wikipedysta:Persino/Gadget-StronicowyParser.js/Kategorie.js
2
58408
435451
433948
2022-07-22T19:08:47Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
//await zmienna_this.ZauaktualizujCzyKategoriaPustaMaPozycjeCzasteczkoweWDrzewieKategorii(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.ZauaktualizujCzyKategoriaPustaMaPozycjeCzasteczkoweWDrzewieKategorii=async function(item){
if(!item.tak_niepuste){
item.tak_niepuste=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('.CategoryTreeEmptyBullet');
if((a_linki_istniejace!==null)&&(a_linki_istniejace.length>0)){
let mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
tab_promise.push(true);
(async function(a_linki_istniejace,i){
await mutkat.zablokuj();
let a=$(a_linki_istniejace[i]).siblings('a');
if((a!==null)&&(a.length>0)){
let href_link=a[0].getAttribute('href');
let href=StronicowyParser.kodowanie.DecodeHtml(href_link,true);
href=href.replace(/\/wiki\//g,"");
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(CzyTablicaCzasteczekPosiadaKategorie(tab_strona_href)){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
a_linki_istniejace[i].outerHTML=span.outerHTML;
}
}
}
mutkat.odblokuj();
tab_promise.pop();
})(a_linki_istniejace,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
n6skgq5wuclh2h4tvdrjt60uugwjgsb
435452
435451
2022-07-22T19:12:20Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
1s5tesjoir948zr7vbos669oodl17yz
435453
435452
2022-07-22T19:21:20Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
1dk2eubxpfcz43h7q11d2dc3xqadq0p
435454
435453
2022-07-22T19:23:22Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
await zmienna_this.ZauaktualizujCzyKategoriaPustaMaPozycjeCzasteczkoweWDrzewieKategorii(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.ZauaktualizujCzyKategoriaPustaMaPozycjeCzasteczkoweWDrzewieKategorii=async function(item){
if(!item.tak_niepuste){
item.tak_niepuste=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('.CategoryTreeEmptyBullet');
if((a_linki_istniejace!==null)&&(a_linki_istniejace.length>0)){
let mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
tab_promise.push(true);
(async function(a_linki_istniejace,i){
await mutkat.zablokuj();
let a=$(a_linki_istniejace[i]).siblings('a');
if((a!==null)&&(a.length>0)){
let href_link=a[0].getAttribute('href');
let href=StronicowyParser.kodowanie.DecodeHtml(href_link,true);
href=href.replace(/\/wiki\//g,"");
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(CzyTablicaCzasteczekPosiadaKategorie(tab_strona_href)){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
a_linki_istniejace[i].outerHTML=span.outerHTML;
}
}
}
mutkat.odblokuj();
tab_promise.pop();
})(a_linki_istniejace,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
9g5lfg9j9y5ojpp3z7i5jsbvxx3znk1
435455
435454
2022-07-22T19:24:13Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
1dk2eubxpfcz43h7q11d2dc3xqadq0p
435456
435455
2022-07-22T19:28:43Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
//await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
//await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
/*for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}*/
//$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
//StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
fvp0xgi0p7b4s7b3wh3xzszjdf647y1
435457
435456
2022-07-22T19:29:16Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
//await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
//await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
/*for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}*/
//$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
83lv2ue45k1dks65x51twn0o0rmbvbw
435458
435457
2022-07-22T19:31:38Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
// let data=$(c[h]).data('ct-loaded');
// let kopia=c[h].cloneNode(true);
// c[h].outerHTML=kopia.outerHTML;
// $(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
br6qyagvvepiu8kqqcml8svcru4spjb
435459
435458
2022-07-22T19:33:44Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
//$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
hmzc96i0nnox4j3uuwzwbjcpdmkeyui
435460
435459
2022-07-22T19:35:24Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
1dk2eubxpfcz43h7q11d2dc3xqadq0p
435461
435460
2022-07-22T19:36:58Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
//$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
hmzc96i0nnox4j3uuwzwbjcpdmkeyui
435462
435461
2022-07-22T19:38:05Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
// let data=$(c[h]).data('ct-loaded');
// let kopia=c[h].cloneNode(true);
// c[h].outerHTML=kopia.outerHTML;
// $(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
br6qyagvvepiu8kqqcml8svcru4spjb
435463
435462
2022-07-22T19:43:01Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
//let kopia=c[h].cloneNode(true);
c[h].outerHTML=c[h].outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
cq59958s8xeq7ip1zr1bdwtiwc7eazr
435464
435463
2022-07-22T19:44:29Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
1dk2eubxpfcz43h7q11d2dc3xqadq0p
435465
435464
2022-07-22T19:51:15Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
alert(kopia)
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
ljao7mm03jxt5ut1m6vjrbr1rf3mf5y
435466
435465
2022-07-22T19:53:10Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
alert(data)
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
jiz9ap5gpfz02qe83zt3a99a6gidkd9
435467
435466
2022-07-22T19:54:01Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
alert(data+h)
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
011xdx5nm0y15wsq4q4ellqkr7i3962
435468
435467
2022-07-22T19:54:55Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
alert(data+","+h)
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
olqa5oznuwb7lfj7z2isyd8xnltqg2e
435469
435468
2022-07-22T19:58:20Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
alert($(id).data('ct-loaded'))
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
e26nshljuhjl9uyd8meanj0purhv97a
435470
435469
2022-07-22T19:59:34Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
alert($(id).data('ct-loaded'))
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
alert($(id).data('ct-loaded'))
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
2cr18o2kgwnd12nbx2qieo2t1cw0zus
435471
435470
2022-07-22T20:01:04Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
//await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
//await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
fvud36zr46bpzerqozjsz99yfs017jo
435472
435471
2022-07-22T20:03:30Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
//const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
//const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
//await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
dxwpcy26gv58uefhnt9lslj4kkls4rl
435473
435472
2022-07-22T20:04:27Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
console.log("TYTAN")
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
hw3x93yf4qtrpbax5ph7t5yu9w6v9tz
435474
435473
2022-07-22T20:05:37Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
9e5j7dvfhfj17gb5hwoyu2aawrwvd7z
435475
435474
2022-07-22T20:10:53Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
alert(data,","+h)
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
alert($(c[h]).data('ct-loaded'),","+h)
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
t96wt58im52ar1cjtu8lp62ekvbquc0
435476
435475
2022-07-22T20:11:59Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
alert(data+","+h)
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
alert($(c[h]).data('ct-loaded')+","+h)
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
59131ueidr6puhct5t9todm81rr01f4
435477
435476
2022-07-22T20:13:46Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
/*await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();*/
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
fitutml1fg0vv5dsmrv23llr7ydfeio
435478
435477
2022-07-22T20:15:32Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
//await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
//await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
//let data=$(c[h]).data('ct-loaded');
//let kopia=c[h].cloneNode(true);
//c[h].outerHTML=kopia.outerHTML;
//$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
//await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
//await StronicowyParser.script.LoadScript('ext.categoryTree');
//await mw.loader.using( ['ext.categoryTree'], await async function (){
//StronicowyParser.script.requireFile('ext.categoryTree')();
//});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
k988yqw9r2kh1zfzoszy6jwvn5duvn7
435479
435478
2022-07-22T20:16:38Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
//let data=$(c[h]).data('ct-loaded');
//let kopia=c[h].cloneNode(true);
//c[h].outerHTML=kopia.outerHTML;
//$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
//await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
//await StronicowyParser.script.LoadScript('ext.categoryTree');
//await mw.loader.using( ['ext.categoryTree'], await async function (){
//StronicowyParser.script.requireFile('ext.categoryTree')();
//});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
chx7jiv2xxtc5e2ehxjy19h4ndimxqc
435480
435479
2022-07-22T20:17:36Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
//await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
//await StronicowyParser.script.LoadScript('ext.categoryTree');
//await mw.loader.using( ['ext.categoryTree'], await async function (){
//StronicowyParser.script.requireFile('ext.categoryTree')();
//});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
qrmdupxxlq9m5w3lmee2425h4xw3jxt
435481
435480
2022-07-22T20:19:06Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
//await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
6ihzbdp0p96u0udgs37zvyehgi19jwj
435482
435481
2022-07-22T20:20:23Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
6k3nh598arm2mk8o3ras98dlpke5s0z
435483
435482
2022-07-22T20:24:31Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
let require=function(){return new Array()};
mw.loader.moduleRegistry['ext.categoryTree'].script.files["ext.categoryTree.js"](require);
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
let require=function(){return new Array()};
mw.loader.moduleRegistry['ext.categoryTree'].script.files["ext.categoryTree.js"](require);
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
j6s69rnds4r5oai3gvjossav742euyv
435484
435483
2022-07-22T20:25:17Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
6k3nh598arm2mk8o3ras98dlpke5s0z
435485
435484
2022-07-22T20:31:35Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
alert(data+","+h)
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
let data=$(c[h]).data('ct-loaded');
alert(data+","+h)
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
tcglcgncew70u5ux8kb4yix4s68e4zd
435486
435485
2022-07-22T20:33:11Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
alert(data+","+h)
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
data=$(c[h]).data('ct-loaded');
alert(data+","+h)
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
mxi2nluwti39ig8y7xulxnxhpt1o8jc
435487
435486
2022-07-22T20:34:41Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
//await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
//await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
e0zezhhacl7u9k1zrbk21thf4lv3c2u
435488
435487
2022-07-22T20:35:54Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
//await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
//await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
//await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
c[h].outerHTML=kopia.outerHTML;
$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
42045r1vhyjro9lnmqzp27v5ma784st
435489
435488
2022-07-22T20:36:41Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
let c=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle');
for(h=0;h<c.length;++h){
let data=$(c[h]).data('ct-loaded');
let kopia=c[h].cloneNode(true);
//c[h].outerHTML=kopia.outerHTML;
//$(c[h]).data('ct-loaded',data);
}
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
i3w64hwwfd3qeet7sjruwgfpfhbrvhy
435490
435489
2022-07-22T20:42:52Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
var data;
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
data[h]=$(element).data('ct-loaded');
let kopia=element.cloneNode(true);
element.outerHTML=kopia.outerHTML;
});
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
$(element).data('ct-loaded',data[h]);
});
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
f1f81v9mhgv7ewddt06mhqtkf5spbay
435491
435490
2022-07-22T20:43:42Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
var data=new Array();
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
data[h]=$(element).data('ct-loaded');
let kopia=element.cloneNode(true);
element.outerHTML=kopia.outerHTML;
});
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
$(element).data('ct-loaded',data[h]);
});
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
3lb9bcxi62sb9r01joigrgllhpz5odw
435492
435491
2022-07-22T20:45:07Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
var data=new Array();
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
data[h]=$(element).data('ct-loaded');
let kopia=element.cloneNode(true);
element.outerHTML=kopia.outerHTML;
$(element).data('ct-loaded',data[h]);
});
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
///$(element).data('ct-loaded',data[h]);
});
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
9ejicrbumzrivuju0ojkzpuj0s604y7
435493
435492
2022-07-22T20:46:32Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
var data=new Array();
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
data[h]=$(element).data('ct-loaded');
let kopia=element.cloneNode(true);
element.outerHTML=kopia.outerHTML;
});
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
$(element).data('ct-loaded',data[h]);
});
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
3lb9bcxi62sb9r01joigrgllhpz5odw
435494
435493
2022-07-22T20:56:43Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
var data=new Array();
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
data[h]=$(element).data('ct-loaded');
let kopia=element.cloneNode(true);
//element.outerHTML=kopia.outerHTML;
element.parentNode.replaceChild(kopia,element);
//$(kopia).data('ct-loaded',data[h]);
});
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
$(element).data('ct-loaded',data[h]);
});
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
lcs8z39t4zfoi5gvkgdeklsu2zo5htd
435495
435494
2022-07-22T20:57:41Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
var data=new Array();
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
data[h]=$(element).data('ct-loaded');
let kopia=element.cloneNode(true);
//element.outerHTML=kopia.outerHTML;
element.parentNode.replaceChild(kopia,element);
$(kopia).data('ct-loaded',data[h]);
});
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
//$(element).data('ct-loaded',data[h]);
});
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
ss85xyezhe4eqrvpy0angxfbfva53co
435496
435495
2022-07-22T20:59:06Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
let data=$(element).data('ct-loaded');
let kopia=element.cloneNode(true);
element.parentNode.replaceChild(kopia,element);
$(kopia).data('ct-loaded',data);
});
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
hdh0s63gicg177eg9thxadylhqpvxe0
435497
435496
2022-07-22T21:12:12Z
Persino
2851
javascript
text/javascript
StronicowyParser.Kategorie=function(){
let zmienna_this=this;
zmienna_this.StworzTabliceKategoriiZCatLinks=async function(){
let tabcat=new Array();
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(catlinks){
let a=catlinks.getElementsByTagName('a');
if((a!==null)&&(a.length>0)){
let re_category_1=new RegExp("^\\/wiki\\/\\s*(.*)$","g");
let re_category_2=new RegExp("^\\/w\\/index\\.php\\?\\s*title\\s*=\\s*([^&]*).*$","g");
for(let i=0;i<a.length;++i){
let href=a[i].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let czy_href_1=re_category_1.test(href);
let czy_href_2=re_category_2.test(href);
if(czy_href_1){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_1,"$1");
}else if(czy_href_2){
href=StronicowyParser.kodowanie.DecodeWiki(href).replace(re_category_2,"$1");
}
if((czy_href_1)||(czy_href_2)){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href)){
href=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
tabcat[href]=true;
}
}
}
}
}
return tabcat;
}
zmienna_this.StworzTabliceKategoriiStrony=async function(strona){
let tab=new Array();
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'categories',
titles: strona
}).then(function(data){
var pages = data.query.pages;
for(let p in pages){
pages[ p ].categories.forEach(function(cat){
tab[cat.title.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"")]=true;
});
}
}).catch(()=>{});
return tab;
};
zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu=async function(data){
let categories=data.parse.categories;
let tab_kategoria=new Array();
for(let i=0;i<categories.length;++i){
let kat=StronicowyParser.kodowanie.DecodeWiki(categories[i]["*"]);
let sortkey=categories[i]["sortkey"];
let tak=true;
for(let j=0;j<tab_kategoria.length;++j){
if(tab_kategoria[j]==kat){
tak=false;
break;
}
}
if(tak){
tab_kategoria[kat]=sortkey||true;
}
}
return tab_kategoria;
}
let muteks_cookie=new StronicowyParser.Muteks();
zmienna_this.StworzCookieDlaKategoriiStrony=async function(data,klucz){
await muteks_cookie.zablokuj();
klucz=klucz||"CzłonkowieKategorii:";
let tabcat=await zmienna_this.StworzTabliceKategoriiIKluczyZDanychWikikodu(data);
let catlinks=await zmienna_this.StworzTabliceKategoriiZCatLinks();
let tab_kat=new Array();
let fullname=StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname);
for(let p in tabcat){
let m="Kategoria:"+p;
tab_kat[tab_kat.length]=m;
let strona_do_kat=mw.cookie.get(m,klucz);
let tab_strona_do_kat=((strona_do_kat)?(strona_do_kat.split("||")):(new Array()));
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
if(tab_strona_do_kat[i].match(/^[^|]*/g).toString()==fullname){
tak=false;
break;
}
}
if(tak){
let key=tabcat[p];
tab_strona_do_kat[tab_strona_do_kat.length]=fullname+((typeof key == "string")?((key!="")?("|"+key):""):"");
let wartosc=tab_strona_do_kat.join('||');
mw.cookie.set(m,wartosc,{prefix: klucz});
}
}
for(let p in catlinks){tab_kat.push("Kategoria:"+p);};
let dane=mw.cookie.get(fullname,"CzłonkowieStron");
let tab_dane=((dane)?(dane.split('|')):(new Array()));
for(let i=0;i<tab_dane.length;++i){
let kategoria=tab_dane[i];
let kategoria_bez_prefiksu=kategoria.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let tak=((!tabcat[kategoria_bez_prefiksu])&&(!catlinks[kategoria_bez_prefiksu]));
if(tak){
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(kategoria,klucz);
if(tab_strona_do_kat!==null){
for(let j=0;j<tab_strona_do_kat.length;){
strona=tab_strona_do_kat[j];
if(strona[0]==fullname){
tab_strona_do_kat.splice(j,1);
}else{
++j;
}
}
let str="";
for(let k=0;k<tab_strona_do_kat.length;++k){
str=((str!="")?("||"):"")+tab_strona_do_kat[k][0]+(((!tab_strona_do_kat[k][1])||(tab_strona_do_kat[k][1]!=""))?("|"+tab_strona_do_kat[k][1]):"");
}
mw.cookie.set(kategoria,str,{prefix: klucz});
}
}
}
mw.cookie.set(fullname,tab_kat.join('|'),{prefix:"CzłonkowieStron"});
mw.cookie.set("Kategoria:Szablony z niejawnie błędnymi parametrami","Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Kategoria:Kategorie dla kategorii|Błędy p||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
mw.cookie.set("Kategoria:Szablon kategoria - nieistniejąca kategoria","Wikipedysta:Persino/brudnopis1||Wikipedysta:Persino/brudnopis||Kategoria:Szablony - błędy szablonów||Kategoria:Kategorie||Plik:Burza_mozgu.png||Plik:C.pdf|Ag||Plik:Zanurkuj w Pythonie.pdf|Ah",{prefix:"CzłonkowieKategorii:"});
console.log(mw.cookie.get("Kategoria:Szablony z niejawnie błędnymi parametrami","CzłonkowieKategorii:"),"CCCCC")
muteks_cookie.odblokuj();
}
let zdarzenia_muteks=new StronicowyParser.Muteks();
zmienna_this.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii=async function(){
async function InfoIleKategoria(){
await zdarzenia_muteks.zablokuj();
let id=this;
let czas=0;
function categoryTreeChildrenFun(resolve,reject){
let notice=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeNotice');
if((notice!==null)&&(notice.length>0)){
let komunikat=notice[0].innerHTML;
if((komunikat=="nic nie znaleziono")||(komunikat=="brak podkategorii")){
resolve("Dobrze");
return;
}
}
let el=$(id).parents('.CategoryTreeItem').siblings('.CategoryTreeChildren').children('.CategoryTreeSection');
if ((el!==null)&&(el.length>0)){resolve("Dobrze");}else{
if(czas>=30000){reject("Dobrze");}else{
setTimeout(() => {categoryTreeChildrenFun(resolve,reject);}, 300);
czas+=300;
}
}
}
await new Promise((resolve, reject) => {categoryTreeChildrenFun(resolve,reject);}).then(()=>{}).catch(()=>{});
let item=$(id).parent().parent();
if((item!==null)&&(item.length>0)){
await zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii(item[0]);
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[0]);
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').each((h,element)=>{
let data=$(element).data('ct-loaded');
let kopia=element.cloneNode(true);
$(element).parent().each((i,rodzic)=>{
rodzic.replaceChild(kopia,element);
});
$(kopia).data('ct-loaded',data);
});
$(id).data("ct-loaded",true);
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
await $('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
zdarzenia_muteks.odblokuj();
}
$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories .CategoryTreeToggle, body #mw-content-text .mw-parser-output .CategoryTreeTag .CategoryTreeToggle').on('click', InfoIleKategoria);
}
async function IleJakichStron(klucz){
let params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=subcats|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_kategorii=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_kategorii=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=pages|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_stron=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_stron=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
params = {
action: 'expandtemplates',
format: 'json',
prop: 'wikitext',
title: StronicowyParser.pageinfo.fullname,
text: '{{#invoke:Techniczne|LiczbaStronJakoPozycjeDanejKategorii|kategoria='+klucz+'|typ=files|wyspecjalizowana=tak}}',
smaxage: 600,
maxage: 600,
};
let ile_plikow=0;
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
ile_plikow=parseInt(data.expandtemplates.wikitext);
}).catch((error) => {});
return new Array(ile_kategorii,ile_stron,ile_plikow);
}
let tab_kategorie_strony_pliki={
0:'subcat',
1:'page',
2:'file',
}
async function TablicaJakichWszystkichStron(klucz,czy_kategorie){
let params = {
action: 'query',
list: 'categorymembers',
cmtitle: klucz,
cmlimit: 5000,
cmprop: 'title|sortkeyprefix',
cmtype: tab_kategorie_strony_pliki[czy_kategorie],
format: 'json',
smaxage: 600,
maxage: 600,
};
let tab=new Array();
await StronicowyParser.api.ZadaniaApi(params).then(function(data){
var category = data.query.categorymembers;
for(let cat in category){
let categorymembers=category[cat];
let title=categorymembers.title;
let sortkey=categorymembers.sortkeyprefix;
tab[cat]=new Array(title.replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," "),sortkey);
}
}).catch((error) => {});
return tab;
}
async function SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii){
let nazwa_przestrzeni=undefined;
let nazwa_strony=undefined;
let re_kategoria=/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(href);
let re_plik=/^[Pp][Ll][Ii][Kk]:/g.test(href);
if((!re_kategoria)&&(!re_plik)){
const nazwa_przestrzeni_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(href);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(href);
await Promise.all([nazwa_przestrzeni_promise,nazwa_strony_promise]).then((values) =>{
nazwa_przestrzeni=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else if(re_kategoria){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}else if(re_plik){
nazwa_przestrzeni="";
nazwa_strony=href.replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
for(let i=0;i<tab_href.length;++i){
let title=tab_href[i][0];
let sortkey=tab_href[i][1];
if(title==href){
return ((sortkey)?sortkey:"")+nazwa_strony+nazwa_przestrzeni;
}
}
for(let i=0;i<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++i){
let tab_title=tab_strona_href_aktualnej_czasteczkowej_kategorii[i];
let title=tab_title[0].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(title==href){
return ((tab_title[1])?tab_title[1]:"")+nazwa_strony+nazwa_przestrzeni;
}
}
return nazwa_strony+nazwa_przestrzeni;
}
function TworzTabliceCzasteczekKlucza(href,klucz){
let czasteczka_href=mw.cookie.get(href,(klucz||"CzłonkowieKategorii:"));
if(!czasteczka_href){return null;}
let tab_cookie=new Array();
let tab_strona_do_kat=czasteczka_href.split("||");
for(let i=0;i<tab_strona_do_kat.length;++i){
let rozdziel_cookie=tab_strona_do_kat[i].split("|");
tab_cookie.push(new Array(rozdziel_cookie[0],rozdziel_cookie[1]));
}
return tab_cookie;
}
function CzyTablicaCzasteczekPosiadaKategorie(tablica_stron){
for(let i=0;i<tablica_stron.length;++i){
let kategoria=tablica_stron[i][0];
if(/^[\s_]*[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa][\s_]*:.+$/g.test(kategoria)){
return true;
}
}
return false;
}
zmienna_this.DodajStronyDoAktualnejKategorii=async function(){
let mw_category_generated=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated');
if(!mw_category_generated){return;}
await muteks_cookie.zablokuj();
let tab_strona_do_kat=TworzTabliceCzasteczekKlucza(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname));
muteks_cookie.odblokuj();
if(!tab_strona_do_kat){return;}
let category=false;let page=false;
if(tab_strona_do_kat.length==0){return;}
let ile_podkategorii=0;
let ile_stron=0;
let ile_plikow=0;
for(let i=0;i<tab_strona_do_kat.length;++i){
let pelna_nazwa_strony=tab_strona_do_kat[i][0].replace(/[\s_]+/g," ");
if(pelna_nazwa_strony.match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/)){
++ile_podkategorii;
}else if(pelna_nazwa_strony.match(/^[Pp][Ll][Ii][Kk]:/)){
++ile_plikow;
}else{
++ile_stron;
}
}
let mw_pages=mw_category_generated.querySelector('#mw-pages');
let mw_subcategories=mw_category_generated.querySelector('#mw-subcategories');
let media=mw_category_generated.querySelector('#mw-category-media');
function PageLubCategory(mw_,page){
if(!mw_){
let div=document.createElement('div');
div.setAttribute('id',((page)?'mw-pages':'mw-subcategories'));
let h2=document.createElement('h2');
h2.innerHTML=((page)?('Strony w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'"'):"Podkategorie");
div.appendChild(h2);
let p=document.createElement('p')
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 '+((page)?'stron':'podkategorii')+' w tej kategorii.';
div.appendChild(p);
let con=document.createElement('div');
con.setAttribute('class','mw-content-ltr');
con.setAttribute('dir','ltr');
con.setAttribute('lang','pl')
let mw_category=document.createElement('div');
mw_category.setAttribute('class','mw-category');
con.appendChild(mw_category);
div.appendChild(con);
if((mw_pages)&&(!page)){
return mw_category_generated.insertBefore(div,mw_pages);
}else{
return mw_category_generated.appendChild(div);
}
}
return mw_;
}
if(((!mw_pages)&&(!mw_subcategories)&&(!media))&&((ile_stron>0)||(ile_podkategorii>0)||(ile_plikow>0))){
mw_category_generated.innerHTML="";
}
let tab_mw_=new Array();
let tab_mw_muteks=new Array();
let tab_co=new Array();
if(ile_stron>0){
if((!mw_pages)&&(ile_stron>0)){
mw_pages=PageLubCategory(mw_pages,true);
}
tab_mw_.push(mw_pages);
tab_co.push(1);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
if(ile_podkategorii>0){
if((!mw_subcategories)&&(ile_podkategorii>0)){
mw_subcategories=PageLubCategory(mw_subcategories,false);
}
tab_mw_.push(mw_subcategories);
tab_co.push(0);
tab_mw_muteks.push(new StronicowyParser.Muteks())
}
let tab_promise=new Array();
for(let d=0;d<tab_mw_.length;++d){
let strona_mutkat=new StronicowyParser.Muteks();
tab_promise.push(true);
(async function(tab_mw_,tab_mw_muteks,d){
let elem=tab_mw_[d];
if(elem==mw_subcategories){
if(ile_podkategorii>0){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
}else{
return;
}
}else if(elem==mw_pages){
if(ile_stron>0){
}else{
return;
}
}
let mutkat=tab_mw_muteks[d];
let mw_category=elem.querySelector('.mw-category');
if(mw_category){
let a_linki_istniejace;
if(elem==mw_subcategories){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem > a');
}else if(elem==mw_pages){
a_linki_istniejace=$(elem).find('.mw-category > .mw-category-group > ul > li > a');
}else{
return;
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[tab_co[d]]);
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie=undefined;
if(tab_klucz_href_poprzednie){
await (async function (){
let przestrzen;let nazwa_strony;
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(tab_klucz_href_poprzednie[1]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(tab_klucz_href_poprzednie[1]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+nazwa_strony+przestrzen;
})();
}
for(let k=0;k<tab_strona_do_kat.length;++k){
tab_promise.push(true);
(async function(tab_strona_do_kat,k){
let klucze=tab_strona_do_kat[k];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(
(((mw_pages)&&(elem==mw_pages))&&(!/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0]))&&(!/^[Pp][Ll][Ii][Kk]:/g.test(klucze[0])))
||((mw_subcategories)&&(elem==mw_subcategories)&&(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(klucze[0])))){
let przestrzen;let nazwa_strony;let pelna_nazwa_strony;
if(elem==mw_pages){
const przestrzen_promise=StronicowyParser.nazwy.NAZWAPRZESTRZENI(klucze[0]);
const nazwa_strony_promise=StronicowyParser.nazwy.NAZWASTRONY(klucze[0]);
await Promise.all([przestrzen_promise, nazwa_strony_promise]).then((values) => {
przestrzen=values[0];
nazwa_strony=values[1];
}).catch(()=>{});
}else{
przestrzen="";
nazwa_strony=klucze[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
}
let sortkey=((klucze[1])?(klucze[1]):"")+nazwa_strony+przestrzen;
let czy_strony=(!klucze[0].match(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g));
let pierwsza_litera=sortkey.substring(0,1).toUpperCase();
async function DodawajKategorieDoStronyKategorii(klucz,pierwsza_litera){
let div=document.createElement('div');
div.setAttribute('class','CategoryTreeSection');
let div2=document.createElement('div');
div2.setAttribute('class','CategoryTreeItem');
let div3=document.createElement('div');
div3.setAttribute('class','CategoryTreeChildren');
div3.style.display='none';
let tab=await IleJakichStron(klucz);
let ile_podkategorii=tab[0];
let ile_stron=tab[1];
let ile_plikow=tab[2];
let span;
if(ile_podkategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
div2.appendChild(span);
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+klucz);
a.setAttribute('title', klucz.replace(/[\s_]+/g,"_"));
a.innerHTML=nazwa_strony;
div2.appendChild(a);
let text=document.createTextNode(" ");
div2.appendChild(text);
let span_ile=document.createElement('span');
span_ile.setAttribute('title',"Zawiera "+ile_podkategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_podkategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_podkategorii>0){
tab[tab.length]=ile_podkategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(" ,")+")";
}else{
span_ile.innerHTML="(pusta)";
}
div2.appendChild(span_ile);
div.appendChild(div2);
div.appendChild(div3);
if(!pierwsza_litera){
let li=document.createElement('li');
li.appendChild(div)
return li;
}
let divg=document.createElement('div');
divg.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
divg.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
li.appendChild(div);
ul.appendChild(li);
divg.appendChild(ul)
return divg;
}
function DodawajStronyDoStronyKategorii(klucz,pierwsza_litera){
if(!pierwsza_litera){
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
let li=document.createElement('li');
li.appendChild(a);
return li;
}
let div=document.createElement('div');
div.setAttribute('class','mw-category-group');
let h3=document.createElement('h3');
h3.innerHTML=pierwsza_litera;
div.appendChild(h3);
let ul=document.createElement('ul');
let li=document.createElement('li');
let a=document.createElement('a');
a.setAttribute('href','/wiki/'+klucz);
a.setAttribute('title',klucz.replace(/[\s_]+/g," "));
a.innerHTML=klucz.replace(/[\s_]+/g," ");
li.appendChild(a);
ul.appendChild(li);
div.appendChild(ul);
return div;
}
await mutkat.zablokuj();
let tak=true;
if(mw_category.innerHTML==""){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
}else{
let mw_category_group=$(mw_category).children();
if((mw_category_group!==null)&&(mw_category_group.length>0)){
for(let i=0;i<mw_category_group.length;++i){
let element=mw_category_group[i];
let litera=element.querySelector('h3').innerHTML;
if(i==0){
if(klucz_href_poprzednie){
let tab1=new Array(sortkey,klucz_href_poprzednie).sort();
let tab2=(new Array(sortkey,litera)).sort();
if((pierwsza_litera!=litera)&&(tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}else{
let tab2=(new Array(sortkey,litera)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element);
tak=undefined;
break;
}
}
}
if(litera!==pierwsza_litera){
let tab1=(new Array(sortkey,litera)).sort();
if(tab1[1]==sortkey){
let element2=mw_category_group[i+1];
if(element2){
let litera2=element2.querySelector('h3').innerHTML;
let tab2=(new Array(sortkey,litera2)).sort();
if(tab2[0]==sortkey){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.insertBefore(div,element2)
tak=undefined;
break;
}
}else{
let p_=elem.querySelector('p');
let ile_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let div=czy_strony?DodawajStronyDoStronyKategorii(klucze[0],pierwsza_litera):await DodawajKategorieDoStronyKategorii(klucze[0],pierwsza_litera);
mw_category.appendChild(div);
tak=undefined;
break;
}
}
}
}else{
let ul=element.querySelector('ul');
let li=$(ul).children();
if((li!==null)&&(li.length>0)){
let poprzedni_klucz=undefined;
for(let j=0;j<li.length;++j){
let a=li[j].querySelector('a');
let href=a.getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/^\/wiki\//g,"");
async function Li(klucz){
let li=czy_strony?DodawajStronyDoStronyKategorii(klucz,null):await DodawajKategorieDoStronyKategorii(klucz,null);
return li;
}
if(j==0){
group=true;
if(klucz_href_poprzednie){
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
let tab2=new Array(sortkey,klucz_href_poprzednie).sort();
if((tab1[0]==sortkey)&&(tab2[1]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}else{
let klucz_href=await SortKey(href,tab_href,tab_strona_do_kat);
let tab1=(new Array(sortkey,klucz_href)).sort();
if(tab1[0]==sortkey){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[0]);
tak=undefined;
break;
}
}
}
let klucz_href1=poprzedni_klucz||await SortKey(href,tab_href,tab_strona_do_kat);
if(li[j+1]){
let a2=li[j+1].querySelector('a');
let href2=a2.getAttribute('href');
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
href2=href2.replace(/^\/wiki\//g,"")
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
poprzedni_klucz=klucz_href2;
let tab1=(new Array(sortkey,klucz_href1)).sort();let tab2=(new Array(sortkey,klucz_href2)).sort();
if((tab1[1]==sortkey)&&(tab2[0]==sortkey)){
let li2=await Li(klucze[0]);
ul.insertBefore(li2,li[j+1]);
poprzedni_klucz=undefined;
tak=undefined;
break;
}else{
poprzedni_klucz=klucz_href2;
}
}else{
let p=elem.querySelector('p');
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let li2=await Li(klucze[0]);
ul.appendChild(li2);
poprzedni_klucz=undefined;
tak=undefined;
break;
}
}
}
}
}
}
}
}
let li_=$(elem).find(':not(.CategoryTreeChildren) li');
if(li_.length>6){
let mw_category=elem.querySelector('.mw-category');
if(!$(mw_category).hasClass('mw-category-columns')){
mw_category.classList.add('mw-category-columns');
}
}
if(!tak){
let p_=elem.querySelector('p');
function replace(s,s1,s2,s3,s4,s5){
return s1+li_.length+s3+(parseInt(s4)+1)+s5;
}
p_.innerHTML=p_.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutkat.odblokuj();
}
}
tab_promise.pop()
})(tab_strona_do_kat,k);
}
}
tab_promise.pop();
})(tab_mw_,tab_mw_muteks,d);
}
if(ile_plikow>0){
await StronicowyParser.script.LoadScript('mediawiki.page.gallery.styles');
await StronicowyParser.script.LoadScript('mmv');
if(!media){
let div=document.createElement('div');
div.setAttribute('id','mw-category-media');
let h2=document.createElement('h2');
h2.innerHTML='Pliki w kategorii „'+StronicowyParser.pageinfo.pagename.replace(/[\s_]+/g," ")+'”';
div.appendChild(h2);
let p=document.createElement('p');
p.innerHTML='Poniżej wyświetlono 0 spośród wszystkich 0 plików w tej kategorii.';
div.appendChild(p);
let ul=document.createElement('ul');
ul.setAttribute('class','gallery mw-gallery-traditional');
div.appendChild(ul);
mw_category_generated.appendChild(div);
}
let tab_ul_kontener=$("body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > ul.gallery.mw-gallery-traditional");
if((tab_ul_kontener!==null)&&(tab_ul_kontener.length>0)){
let ul_kontener=tab_ul_kontener[0];
let li=$(ul_kontener).children('li.gallerybox');
async function Li(plik){
let li=document.createElement('li');
li.setAttribute('class','gallerybox')
li.setAttribute('style','width: 155px');
let div=document.createElement('div');
div.setAttribute('style','width: 155px')
div=li.appendChild(div);
let div_thumb=document.createElement('div');
div_thumb.setAttribute('class','thumb')
div_thumb.setAttribute('style','width: 150px;height:150px;');
div_thumb=div.appendChild(div_thumb);
let div_nast=document.createElement('div');
div_nast=div_thumb.appendChild(div_nast);
let url;let width;let urls;let height;let size;let pagecount;let thumburl;
await StronicowyParser.api.ZadaniaApi({
action: 'query',
format: 'json',
prop: 'imageinfo',
iiprop: 'url|size',
iiurlwidth: 85,
titles: plik,
smaxage: 600,
maxage: 600,
}).then(function(data){
let pages=data.query.pages;
for(let p in pages){
let imageinfo=pages[p].imageinfo[0];
url=((imageinfo.thumburl)?(imageinfo.thumburl.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")):(imageinfo.url.replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")));
let urls2=imageinfo.responsiveUrls;
let i=0;
urls=new Array();
for(let p in urls2){
urls[i]=urls2[p].replace(/^[Hh][Tt][Tt][Pp][Ss]?:\/\//g,"//")+" "+p+"x";
++i;
}
width=imageinfo.width;
height=imageinfo.height;
size=imageinfo.size;
pagecount=imageinfo.pagecount;
break;
}
}).catch(()=>{});
let a=document.createElement('a');
a.setAttribute('href',"/wiki/"+plik.replace(/[\s_]+/g,"_"));
a.setAttribute('class','image');
let img=document.createElement('img');
img.setAttribute('width','120');
img.setAttribute('height','114');
img.setAttribute('alt',plik);
if(urls.length>0){
img.setAttribute('srcset',urls.join(" "));
}
img.setAttribute('src',url);
img.setAttribute('decoding','async');
img.setAttribute('data-file-width',width)
img.setAttribute('data-file-height',height)
if(width>height){
let new_height=parseInt((height/width)*120);
img.setAttribute('width',120);
img.setAttribute('height',new_height);
div_nast.setAttribute('style','margin:'+(parseInt((150-new_height)/2))+'px auto')
}else{
let new_width=parseInt((width/height)*120);
img.setAttribute('width',new_width);
img.setAttribute('height',120);
div_nast.setAttribute('style','margin:'+(parseInt((150-120)/2))+'px auto')
}
a.appendChild(img);
div_nast.appendChild(a);
let div_opis=document.createElement('div');
div_opis.setAttribute('class','gallerytext');
div_opis=div.appendChild(div_opis);
a=document.createElement('a')
a.setAttribute('href','/wiki/'+plik);
a.setAttribute('class','galleryfilename galleryfilename-truncate');
a.setAttribute('title',plik.replace(/[\s_]+/g," "));
a.innerHTML=plik.replace(/^[Pp][Ll][Ii][Kk]:/g,"").replace(/[\s_]+/g," ");
div_opis.appendChild(a);
let size_new=0+" B";
if(size/1024<1){
size_new=size+" B";
}else if(size/1024<1024){
size_new=parseInt(size/1024*100)/100+" KB";
}else if(size/1024/1024<1024){
size_new=Math.round(size/1024/1024*100)/100+" MB";
}else if(size/1024/1024/1024<1024){
size_new=Math.round(size/1024/1024/1024*100)/100+" GB";
}else{
size_new=size+" B";
}
let tekst=document.createTextNode(" "+width+" × "+height+((pagecount)?(", "+pagecount+" stron"):"")+"; "+size_new);
div_opis.appendChild(tekst);
return li;
}
tab_promise.push(true);
(async function (){
let tab_href=await TablicaJakichWszystkichStron(StronicowyParser.kodowanie.DecodeWiki(StronicowyParser.pageinfo.fullname),tab_kategorie_strony_pliki[2]);
let a_linki_istniejace=li.children('div').children('div.thumb').children('div').children('a');
let tab_klucz_href_poprzednie=undefined;
if(a_linki_istniejace.length>0){
let href_pierwsze=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[0].getAttribute('href'),true).replace(/\/wiki\//g,"");
for(let i=0;i<tab_href.length;++i){
let href_aktualne=tab_href[i][0];
if(href_pierwsze==href_aktualne){
break;
}else{
let sortkey=tab_href[i][1];
tab_klucz_href_poprzednie=new Array(sortkey,href_aktualne);
}
}
}
let klucz_href_poprzednie;
if(tab_klucz_href_poprzednie){
klucz_href_poprzednie=tab_klucz_href_poprzednie[0]+tab_klucz_href_poprzednie[1].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
}
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let strona_mutkat=new StronicowyParser.Muteks();
let mutplik=new StronicowyParser.Muteks();
let tak=true;
for(let i=0;i<tab_strona_do_kat.length;++i){
let klucze=tab_strona_do_kat[i];
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[klucze[0]]){strona_mutkat.odblokuj();return false;}
tab_a[klucze[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(/^[Pp][Ll][Ii][Kk]:/g.test(tab_strona_do_kat[i][0])){
if(await CzyWchodzic()){
await mutplik.zablokuj();
let li=$(ul_kontener).children('li.gallerybox');
let a=li.children('div').children('div.thumb').children('div').children('a');
if((a===null)||(a.length==0)){
let li=await Li(tab_strona_do_kat[i][0]);
li=ul_kontener.appendChild(li);
tak=undefined;
}else{
let tab_plik=tab_strona_do_kat[i];
let klucz=((tab_plik[1])?tab_plik[1]:"")+tab_plik[0].replace(/^[Pp][Ll][Ii][Kk]:/g,"");
let klucz_poprzednie=undefined;
for(let j=0;j<a.length;++j){
let li=$(a[j]).parents('li');
let href=a[j].getAttribute('href').replace(/\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
let klucz_href=klucz_poprzednie||await SortKey(href,tab_href,tab_strona_do_kat);
if(j==0){
if(klucz_href_poprzednie){
let tab1=new Array(klucz_href_poprzednie,klucz).sort();
let tab2=new Array(klucz_href,klucz).sort();
if((tab[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let tab1=new Array(klucz_href,klucz).sort();
if(tab1[0]==klucz){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}
}
let tab1=new Array(klucz_href,klucz).sort();
if(a[j+1]){
let href2=a[j+1].getAttribute('href').replace(/\/wiki\//g,"");
href2=StronicowyParser.kodowanie.DecodeHtml(href2,true);
let klucz_href2=await SortKey(href2,tab_href,tab_strona_do_kat);
klucz_poprzednie=klucz_href2;
let tab2=new Array(klucz_href2,klucz).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let _li=await Li(tab_strona_do_kat[i][0]);
let li=$(a[j+1]).parents('li');
ul_kontener.insertBefore(_li,li[0]);
tak=undefined;
break;
}
}else{
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
let ile_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$2"));
let ile_wszystkich_stron=parseInt(p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,"$4"));
if((ile_stron==ile_wszystkich_stron)||((ile_stron<=ile_wszystkich_stron)&&(ile_stron<=200))){
let _li=await Li(tab_strona_do_kat[i][0]);
ul_kontener.appendChild(_li);
tak=undefined;
break;
}
}
}
}
if(!tak){
function replace(s,s1,s2,s3,s4,s5){
let li=$(ul_kontener).children('li.gallerybox');
return s1+li.length+s3+(parseInt(s4)+1)+s5;
}
let p=$('body.ns-14 #mw-content-text .mw-category-generated > #mw-category-media > p')[0];
p.innerHTML=p.innerHTML.replace(/^([^\d]+)(\d+)([^\d]+)(\d+)([^\d]+)$/g,replace);
}
mutplik.odblokuj();
}
}
}
tab_promise.pop();
})();
}
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
zmienna_this.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii=async function(item){
let mutkat=new StronicowyParser.Muteks();
let categoryTreebullet=((item==null)?$('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories > * > .mw-category > .mw-category-group > ul > li > .CategoryTreeSection > .CategoryTreeItem'):$(item).siblings('.CategoryTreeChildren').children(".CategoryTreeSection").children(".CategoryTreeItem"));
if((categoryTreebullet!==null)&&(categoryTreebullet.length>0)){
let tab_promise=new Array();
for(let i=0;i<categoryTreebullet.length;++i){
tab_promise.push(true);
(async function(categoryTreebullet,i){
await mutkat.zablokuj();
if(!categoryTreebullet[i].tak){
categoryTreebullet[i].tak=true;
let a=categoryTreebullet[i].querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href!==null){
if(tab_strona_href.length>0){
let ile_kategorii=0;let ile_plikow=0;let ile_stron=0;
for(let k=0;k<tab_strona_href.length;++k){
let strona=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona)||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(strona)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona)||/^[Ff][Ii][LL][Ee]:/g.test(strona)){
++ile_plikow;
}else{
++ile_stron;
}
}
let dzieci=$(categoryTreebullet[i]).children();
let span_ile;
if(dzieci.length>0){
span_ile=categoryTreebullet[i].lastChild;
let title=span_ile.getAttribute('title');
if(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g.test(title)){
ile_kategorii=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$1"))+ile_kategorii;
ile_stron=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$2"))+ile_stron;
ile_plikow=parseInt(title.replace(/^[^\d]+(\d+)[^\d]+(\d+)[^\d]+(\d+)[^\d]+$/g,"$3"))+ile_plikow;
}
};
let span;
if(ile_kategorii>0){
span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',href.replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"").replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
}else{
span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
}
let span_full=$(a).parent().find('span').first();
if((span_full!==null)&&(span_full.length>0)){
span_full[0].outerHTML=span.outerHTML;
}
if(dzieci.length>2){
span_ile.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorie, "+ile_stron+" stron i "+ile_plikow+" plików")
span_ile.setAttribute('dir','ltr');
if(parseInt(ile_kategorii)+parseInt(ile_stron)+parseInt(ile_plikow)>0){
let tab=new Array();
if(ile_kategorii>0){
tab[tab.length]=ile_kategorii+" kat.";
}
if(ile_stron>0){
tab[tab.length]=ile_stron+" str.";
}
if(ile_plikow>0){
tab[tab.length]=ile_plikow+" pl.";
}
span_ile.innerHTML="("+tab.join(", ")+")";
}else{
span_ile.innerHTML="(pusta)";
}
}
}
}
categoryTreebullet[i].tak=true;
}
mutkat.odblokuj();
tab_promise.pop();
})(categoryTreebullet,i);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach=async function(item){
if(!item.tak_drzewo_kategorii){
item.tak_drzewo_kategorii=true;
let a_linki_istniejace=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
let tab_a=new Array();
for(let i=0;i<a_linki_istniejace.length;++i){
let href=StronicowyParser.kodowanie.DecodeHtml(a_linki_istniejace[i].getAttribute('href'),true).replace(/\/wiki\//g,"");
tab_a[href]=true;
}
let a=item.querySelector('a');
let href=a.getAttribute('href').replace(/^\/wiki\//g,"");
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
await muteks_cookie.zablokuj();
let tab_strona_href_aktualnej_czasteczkowej_kategorii=TworzTabliceCzasteczekKlucza(href);
muteks_cookie.odblokuj();
if(tab_strona_href_aktualnej_czasteczkowej_kategorii!==null){
if(tab_strona_href_aktualnej_czasteczkowej_kategorii.length>0){
let tab_href=await TablicaJakichWszystkichStron(href,true);
let mutkat=new StronicowyParser.Muteks();let strona_mutkat=new StronicowyParser.Muteks();
let tab_promise=new Array();
for(let j=0;j<tab_strona_href_aktualnej_czasteczkowej_kategorii.length;++j){
tab_promise.push(true);
(async function(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href){
let tab_strona=tab_strona_href_aktualnej_czasteczkowej_kategorii[j];
let nazwa_strony=tab_strona[0].replace(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g,"");
let klucz=((tab_strona[1])?tab_strona[1]:"")+nazwa_strony;
async function CzyWchodzic(){
await strona_mutkat.zablokuj();
if(tab_a[tab_strona[0]]){strona_mutkat.odblokuj();return false;}
tab_a[tab_strona[0]]=true;
strona_mutkat.odblokuj();
return true;
}
if(await CzyWchodzic()){
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(tab_strona[0])||/^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:/g.test(tab_strona[0])){
await muteks_cookie.zablokuj();
let tab_strona_href=TworzTabliceCzasteczekKlucza(tab_strona[0]);
muteks_cookie.odblokuj();
await mutkat.zablokuj();
let $link=$($(item).find('.CategoryTreeToggle')[0]).data('ct-loaded');
let child_puste=item.querySelector('.CategoryTreeEmptyBullet');
if(child_puste){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony);
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
child_puste.outerHTML=span.outerHTML;
}
let categorytreesection=document.createElement('div');
categorytreesection.setAttribute('class','CategoryTreeSection');
let categorytreeitem=document.createElement('div');
categorytreeitem.setAttribute('class','CategoryTreeItem');
let tab=await IleJakichStron(tab_strona[0]);
let ile_kategorii=tab[0];let ile_stron=tab[1];let ile_plikow=tab[2];
if(tab_strona_href){
for(let k=0;k<tab_strona_href.length;++k){
let strona_kategorii=tab_strona_href[k][0];
if(/^[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii][Aa]:/g.test(strona_kategorii)){
++ile_kategorii;
}else if(/^[Pp][Ll][Ii][Kk]:/g.test(strona_kategorii)){
++ile_plikow;
}else{
++ile_stron;
}
}
}
function InfoItem(item) {
let tekst=document.createTextNode(' ');
let span_tekst=document.createElement('span');
span_tekst.setAttribute('dir','ltr');
span_tekst.setAttribute('title',"Zawiera "+ile_kategorii+" podkategorii, "+ile_stron+" stron i "+ile_plikow+" plików")
if((ile_kategorii==0)&&(ile_stron==0)&&(ile_plikow==0)){
span_tekst.innerHTML="(pusta)";
}else{
tekst_ile=((ile_kategorii>0)?(ile_kategorii+" kat."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_stron>0)?", ":""):"")+((ile_stron>0)?(ile_stron+" str."):"");
tekst_ile=tekst_ile+((tekst_ile!="")?((ile_plikow>0)?", ":""):"")+((ile_plikow>0)?(ile_plikow+" pl."):"");
span_tekst.innerHTML="("+tekst_ile+")";
}
item.appendChild(tekst);
item.appendChild(span_tekst);
}
if(ile_kategorii>0){
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeBullet')
let span2=document.createElement('span');
span2.setAttribute('class','CategoryTreeToggle CategoryTreeToggleHandlerAttached');
span2.setAttribute('data-ct-title',nazwa_strony.replace(/[\s_]+/g,"_"));
span2.setAttribute('data-ct-state','collapsed');
span2.setAttribute('title','rozwiń');
span.appendChild(span2);
let spacja=document.createTextNode(" ");
span.appendChild(spacja);
categorytreeitem.appendChild(span);
}else{
let span=document.createElement('span');
span.setAttribute('class','CategoryTreeEmptyBullet');
categorytreeitem.appendChild(span);
let spacja=document.createTextNode(" ");
categorytreeitem.appendChild(spacja);
}
let a=document.createElement('a')
a.setAttribute('href',"/wiki/"+tab_strona[0]);
a.setAttribute('title',tab_strona[0]);
a.innerHTML=nazwa_strony;
categorytreeitem.appendChild(a);
InfoItem(categorytreeitem);
categorytreesection.appendChild(categorytreeitem);
let children_nowe=document.createElement('div');
children_nowe.setAttribute('class','CategoryTreeChildren');
children_nowe.style.display="none";
categorytreesection.appendChild(children_nowe);
let a_linki_istniejace_aktualne=$(item).siblings('.CategoryTreeChildren').children('.CategoryTreeSection').children('.CategoryTreeItem').children('a');
if((child_puste)||(a_linki_istniejace_aktualne.length==0)){
let children_nowe=$(item).siblings('.CategoryTreeChildren')[0];
children_nowe.innerHTML="";
children_nowe.appendChild(categorytreesection);
}else{
if((a_linki_istniejace_aktualne!==null)&&(a_linki_istniejace_aktualne.length>0)){
klucz_href_poprzednie=undefined;
for(let s=0;s<a_linki_istniejace_aktualne.length;++s){
let href=a_linki_istniejace_aktualne[s].getAttribute('href');
href=StronicowyParser.kodowanie.DecodeHtml(href,true);
href=href.replace(/\/wiki\//g,"");
let klucz_href=await SortKey(href,tab_href,tab_strona_href_aktualnej_czasteczkowej_kategorii);
if(s==0){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[0]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent('.CategoryTreeItem').parent('.CategoryTreeSection').parent('.CategoryTreeChildren');
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}else if(s+1==a_linki_istniejace_aktualne.length){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else if(s+1==a_linki_istniejace_aktualne.length){
let posortowane=(new Array(klucz,klucz_href)).sort();
if(posortowane[1]==klucz){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].appendChild(categorytreesection);
break;
}
}else{
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}else{
let tab1=(new Array(klucz,klucz_href_poprzednie)).sort();let tab2=(new Array(klucz,klucz_href)).sort();
if((tab1[1]==klucz)&&(tab2[0]==klucz)){
let child=$(a_linki_istniejace_aktualne[s]).parent().parent().parent();
if((child!==null)&&(child.length>0)){
child[0].insertBefore(categorytreesection,$(a_linki_istniejace_aktualne[s]).parent().parent()[0]);
break;
}
}
klucz_href_poprzednie=klucz_href;
}
}
}
}
mutkat.odblokuj();
}
}
tab_promise.pop();
})(tab_strona_href_aktualnej_czasteczkowej_kategorii,j,tab_href);
}
await StronicowyParser.CzekajNaZakaczenie(tab_promise);
}
}
}
}
zmienna_this.DodajDoCategoryTreeElementy=async function(){
let item=$("#mw-content-text .mw-parser-output .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem");
if((item!==null)&&(item.length>0)){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
for(let i=0;i<item.length;++i){
await zmienna_this.DodajKategorieDoDrzewaKategoriiWKategoriach(item[i]);
}
}
}
zmienna_this.DolaczOdNowaZdarzeniaSystemoweKategorii=async function(zdarzenia,categorytree){
let oryginal=document.querySelector('body.ns-14 #mw-content-text .mw-category-generated > #mw-subcategories');
if((categorytree)&&(oryginal!==null)){
let kopia=oryginal.cloneNode(true);
oryginal.outerHTML=kopia.outerHTML;
}
let oryginalcategorytree=$("#mw-content-text .mw-parser-output .CategoryTreeTag");
if((oryginalcategorytree!==null)&&(oryginalcategorytree.length>0)){
for(let i=0;i<oryginalcategorytree.length;++i){
let kopia=oryginalcategorytree[i].cloneNode(true);
oryginalcategorytree[i].outerHTML=kopia.outerHTML;
}
}
if(zdarzenia){
await StronicowyParser.script.LoadScript('ext.categoryTree.styles');
await StronicowyParser.script.LoadScript('ext.categoryTree');
await mw.loader.using( ['ext.categoryTree'], await async function (){
StronicowyParser.script.requireFile('ext.categoryTree')();
});
}
}
}
StronicowyParser.LinkiKategorii=function(){
let tab_cat;
let kat=new StronicowyParser.Kategorie();
this.PobierzKategorieStrony=async function(){
tab_cat=await kat.StworzTabliceKategoriiZCatLinks();
}
this.AnalizaKategorii=async function(data){
await StronicowyParser.muteks.zablokuj();
let categories=data.parse.categories;
if(categories.length>0){
let bodycontent=document.querySelector('#bodyContent');
let czy_catlinks=document.querySelector('#bodyContent > #catlinks.catlinks-allhidden');
let czy_catlinks_nieukryte=document.querySelector("#bodyContent > #catlinks.catlinks:not(.catlinks-allhidden)");
if(!czy_catlinks_nieukryte){
let catlinks=document.createElement('div');
catlinks.setAttribute('id',"catlinks");
catlinks.setAttribute("class","catlinks");
catlinks.setAttribute("data-mw","interface")
if(czy_catlinks){
czy_catlinks.outerHTML=catlinks.outerHTML;
}else{
bodycontent.appendChild(catlinks);
}
}
let catlinks=document.querySelector("#bodyContent > #catlinks.catlinks");
if(catlinks){
let catlinks_normal=document.querySelector("#bodyContent > #catlinks.catlinks #mw-normal-catlinks");
let catlinks_hidden=document.querySelector("#bodyContent > #catlinks.catlinks #mw-hidden-catlinks");
for(let l=0;l<categories.length;++l){
let cattab=categories[l];
let cat=cattab["*"].replace(/^[\s_]*/g,"").replace(/[\s_]*$/g,"").replace(/[\s_]+/g," ");
if(!tab_cat[cat]){
tab_cat[cat]=true;
let a=document.createElement('a');
a.href="/wiki/Kategoria:"+StronicowyParser.kodowanie.EncodeHtml(cat);
a.innerHTML=cat;
if((cattab["missing"]!=null)&&(cattab["missing"]=="")){
a.classList.add('new');
a.setAttribute('title',"Kategoria:"+cat+" (strona nie istnieje)");
}else{
a.setAttribute('title',"Kategoria:"+cat);
}
let li=document.createElement('li');
li.innerHTML=a.outerHTML;
if((cattab["hidden"]!=null)&&(cattab["hidden"]=="")){
if(!catlinks_hidden){
let catlinks_hidden_div=document.createElement('div');
catlinks_hidden_div.setAttribute("id","mw-hidden-catlinks");
catlinks_hidden_div.setAttribute("class","mw-hidden-catlinks mw-hidden-cats-user-shown");
catlinks_hidden_div.innerHTML="Ukryta kategoria: <ul></ul>";
let catlinkihtml=document.querySelector("#bodyContent .catlinks");
catlinks_hidden=catlinkihtml.appendChild(catlinks_hidden_div);
}
let ul=catlinks_hidden.querySelector('ul');
ul.appendChild(li);
}else{
if(!catlinks_normal){
let catlinks_normal_div=document.createElement('div');
catlinks_normal_div.setAttribute("id","mw-normal-catlinks");
catlinks_normal_div.setAttribute("class","mw-normal-catlinks");
let a=document.createElement('a');
a.setAttribute('href',"/wiki/Specjalna:Kategorie");
a.setAttribute('title',"Specjalna:Kategorie");
a.innerHTML="Kategoria";
catlinks_normal_div.appendChild(a);
catlinks_normal_div.innerHTML=catlinks_normal_div.innerHTML+":";
let ul=document.createElement('ul');
catlinks_normal_div.appendChild(ul);
catlinks_normal=catlinks.insertBefore(catlinks_normal_div,catlinks.firstChild);
}
let ul=catlinks_normal.querySelector('ul');
ul.appendChild(li);
}
}
}
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
}else{
let action_view=document.querySelector('body.action-view');
if(action_view){
kat.StworzCookieDlaKategoriiStrony(data,null);
}
}
StronicowyParser.muteks.odblokuj();
}
}
StronicowyParser.kategorie=new StronicowyParser.Kategorie();
(async function(){
let ns_14=document.querySelector("body.ns-14 #mw-content-text .mw-category-generated, body.ns-14 #mw-content-text .mw-parser-output .CategoryTreeTag");
if(ns_14){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,true);
await StronicowyParser.kategorie.DodajStronyDoAktualnejKategorii();
const promise1=StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
const promise2=StronicowyParser.kategorie.ZaaktualizujInformacjeOKategorachiWPrzestrzeniKategorii();
await Promise.all([promise1,promise2]).then((values) => {}).catch(()=>{});
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,true);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}else{
let categorytreetag=document.querySelector("body:not(.ns-14) #mw-content-text .mw-parser-output .CategoryTreeTag");
if(categorytreetag){
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(false,false);
await StronicowyParser.kategorie.DodajDoCategoryTreeElementy();
await StronicowyParser.kategorie.DolaczOdNowaZdarzeniaSystemoweKategorii(true,false);
await StronicowyParser.kategorie.DodajSwojeInneZdarzeniaDoObsługiiDrzewaKategorii();
}
}
})();
thakl9vs9i463v4pd2vglcrpp1dlbbj
Wikipedysta:Persino/vector-2022.js
2
58546
435434
435367
2022-07-22T17:24:14Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
if(element!=="none"){
setTimeout(function(){
$(element).hide();
},250);
}else{
$(element).show();
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
2bhynuggnccyk01volonslm5xxc0oat
435435
435434
2022-07-22T17:25:56Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
if(element!="none"){
setTimeout(function(){
$(element).hide();
},250);
}else{
$(element).show();
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
50zz49wg2buhoblk7b50lexbtbvlerz
435436
435435
2022-07-22T17:27:05Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
if(element!="none"){
setTimeout(function(){
$(element).hide();
alert("A")
},250);
}else{
$(element).show();
alert("B")
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
3cpfvrnqmw0vvrr19qbsycrbzy3e2yy
435437
435436
2022-07-22T17:29:05Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
var display=window.getComputedStyle(rodzic, null).getPropertyValue("display");
if(display!="none"){
setTimeout(function(){
$(element).hide();
},250);
}else{
$(element).show();
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
5dm7co8vnougq5yhypmeb4232yqyvkg
435438
435437
2022-07-22T17:30:03Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
var display=window.getComputedStyle(element, null).getPropertyValue("display");
if(display!="none"){
setTimeout(function(){
$(element).hide();
},250);
}else{
$(element).show();
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
0wk6fwd8vb7cius5ww095ea1eiukcw0
435439
435438
2022-07-22T17:34:56Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
var display=window.getComputedStyle(element, null).getPropertyValue("display");
var tak=undefined;
if(display!="none"){
if(tak===undefined){
setTimeout(function(){
$(element).hide();
tak=true;
},250);
}
}else{
if(tak){
$(element).show();
tak=undefined;
}
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
3a3g9bmgxg4xibcdcfoftfx0w3hgzc6
435440
435439
2022-07-22T17:36:04Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
var display=window.getComputedStyle(element, null).getPropertyValue("display");
var tak=undefined;
if(display!="none"){
if(!tak){
setTimeout(function(){
$(element).hide();
tak=true;
},250);
}
}else{
if(tak){
$(element).show();
tak=undefined;
}
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
10xbwqro18ndsgf71e2qvv45s9c46dc
435441
435440
2022-07-22T17:38:34Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
var display=window.getComputedStyle(element, null).getPropertyValue("display");
var tak=undefined;
if(display!="none"){
setTimeout(function(){
$(element).hide();
tak=true;
},250);
}else{
if(tak){
$(element).show();
tak=undefined;
}
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
h1tvorxbicxtxf7qi8k5k6of0x1yq85
435442
435441
2022-07-22T17:39:13Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
var display=window.getComputedStyle(element, null).getPropertyValue("display");
var tak=undefined;
if(display!="none"){
setTimeout(function(){
$(element).hide();
},250);
}else{
$(element).show();
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
1berb177m19yovczi6sr66r6xqm1vak
435443
435442
2022-07-22T18:05:48Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
var display=window.getComputedStyle(element, null).getPropertyValue("display");
var tak=undefined;
if(display!="none"){
setTimeout(function(){
if(!tak){
$(element).hide();
tak=true;
}
},250);
}else{
if(tak){
$(element).show();
tak=undefined;
}
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
04m7gcf7swk9ppktunbe8zlaadeatue
435444
435443
2022-07-22T18:08:23Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
var tak_ukrywaj_menu_boczne=undefined;
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
var display=window.getComputedStyle(element, null).getPropertyValue("display");
if(display!="none"){
setTimeout(function(){
if(!tak_ukrywaj_menu_boczne){
$(element).hide();
tak_ukrywaj_menu_boczne=true;
}
},250);
}else{
if(tak_ukrywaj_menu_boczne){
$(element).show();
tak_ukrywaj_menu_boczne=undefined;
}
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
jgfauri7dwvnmqalq27fsiz906lm70q
435445
435444
2022-07-22T18:15:13Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
var tak_ukrywaj_menu_boczne=undefined;
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
$('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){
setTimeout(function(){
$(element).hide();
},250);
});
$('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){
$(element).show();
});
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
7288dxq7rqexkv824g7ia8005497pmy
435446
435445
2022-07-22T18:17:16Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
var tak_ukrywaj_menu_boczne=undefined;
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
tak=undefined;
$('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){
tak=true;
setTimeout(function(){
$(element).hide();
},250);
});
if(!tak){
$('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){
$(element).show();
});
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
0ge4bqol4iq7tb3vml857t0w4f99065
435447
435446
2022-07-22T18:20:12Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
var tak_ukrywaj_menu_boczne=undefined;
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
$('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){
setTimeout(function(){
$(element).hide();
},250);
});
$('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){
$(element).show();
});
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
qewj6j6z62mg5wif3zepholiflzl8j7
435448
435447
2022-07-22T18:21:49Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
var tak_ukrywaj_menu_boczne=undefined;
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
var tak=undefined;
$('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){
tak=true;
setTimeout(function(){
$(element).hide();
},250);
});
if(!tak){
$('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){
$(element).show();
});
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
56dlw3sg6dnqebgr1wwntm0gwzfptdr
435449
435448
2022-07-22T18:34:44Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
var tak_ukrywaj_menu_boczne=undefined;
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
$('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){
tak_ukrywaj_menu_boczne=true;
setTimeout(function(){
$(element).hide();
tak_ukrywaj_menu_boczne=undefined;
},250);
});
if(!tak_ukrywaj_menu_boczne){
$('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){
$(element).show();
});
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
a3ut2mj7vw7q5accyrnwwl0rw3siczz
435450
435449
2022-07-22T18:39:13Z
Persino
2851
javascript
text/javascript
function SideBarToc(){
var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container');
if(sidebar!==null){
var sidebartoc=sidebar.querySelector('.sidebar-toc');
if(sidebartoc!==null){
if(!$(sidebar).hasClass('sidebar_obecny')){
sidebar.classList.add('sidebar_obecny');
}
if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){
sidebartoc.style.top=window.scrollY+"px";
}else if(sidebar.clientHeight>=sidebartoc.clientHeight){
sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px";
}
}else{
sidebar.classList.remove('sidebar_obecny');
}
}
}
var tak_ukrywaj_menu_boczne=undefined;
function UkrywajMenuBoczne(){
$('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){
$('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){
if(!tak_ukrywaj_menu_boczne){
setTimeout(function(){
$(element).hide();
tak_ukrywaj_menu_boczne=true;
},250);
}
});
if(tak_ukrywaj_menu_boczne){
$('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){
$(element).show();
tak_ukrywaj_menu_boczne=undefined;
});
}
});
}
$('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne);
function Brudnopis(){
var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage');
if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;}
var user=mw.config.get('wgUserName');
if(!user){return;}
var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list');
var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list');
if((!ul_zakladka)||(!ul_wiecej)){return;}
var caption;
if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) {
caption = 'Sandbox';
}else{
caption="Brudnopis";
}
var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis";
/*Zakładka*/
var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild);
/*Więcej*/
var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild);
node_wiecej.classList.add('vector-more-collapsible-item');
var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta");
if(strona==brudnopis){
node_zakladka.classList.add('selected');
node_wiecej.classList.add('selected');
}
}
$(Brudnopis);
var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit');
if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){
$(SideBarToc);
window.addEventListener('scroll', SideBarToc);
}
function BlankElements(){
var elements=$("body.skin-vector-search-vue *");
if((elements!==null)&&(elements.length>0)){
for(var i=0;i<elements.length;++i){
var h=elements[i];
var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,"");
if(/^\s*$/g.test(wartosc)){
h.classList.add("blank");
}else{
h.classList.remove("blank");
}
}
}
}
$(BlankElements);
function ConintainerParserOut(){
$( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() {
return "<div class='mw-container-parser-output'></div>";
});
}
ConintainerParserOut();
function OverflowXConintainerParserOut(){
$('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x');
}
OverflowXConintainerParserOut();
function MwContainerParserOutput(){
var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output');
if(container!==null){
var height_container=container.clientHeight;
if(height_container==0){
var con=document.querySelector('.mw-container-parser-output');
if(con){con.classList.add('has-mw-parser-output-whitespace')}
}
}
}
MwContainerParserOutput();
function LewaNawigacja(){
function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){
var czy_odkryty=menu_portret.getAttribute("id");
var menu=$(menu_portret).children('.vector-menu-heading');
var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja");
if((nawigacja==null)||(nawigacja=="")){
if(czy_nawigacja){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}else{
if(nawigacja=="true"){
menu.addClass('mw-menu-active');
menu.siblings('.vector-menu-content').addClass('mw-items-active');
}else{
menu.addClass('mw-menu-inactive');
menu.siblings('.vector-menu-content').addClass('mw-items-inactive');
}
}
}
var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation');
var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)');
if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;}
portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);});
portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);});
function onclick(){
var id=$(this);
if(id.hasClass('mw-menu-active')){
id.removeClass('mw-menu-active');
id.addClass('mw-menu-inactive')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"});
}else{
id.removeClass('mw-menu-inactive');
id.addClass('mw-menu-active')
var czy_odkryty=id.parent()[0].getAttribute("id");
mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"});
}
var items=id.siblings('.vector-menu-content');
if(items.hasClass('mw-items-active')){
items.removeClass('mw-items-active');
items.addClass('mw-items-inactive')
}else{
items.removeClass('mw-items-inactive');
items.addClass('mw-items-active');
}
}
$('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick);
}
$(LewaNawigacja);
9jfwfk0p8uympo5d9b47qnu2exhq62f