Difference between revisions of "User:Oliver/Test"

From From The Ashes Wiki
Jump to: navigation, search
 
(55 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#css:
 
{{#css:
.colon {
+
.loglist ul {
     white-space: nowrap;
+
     margin: 0;
 +
    list-style-position: inside;
 
}
 
}
.colon::after {
+
.loglist.cols {
     content: ": ";
+
     columns: 275px {{{cols|1}}};
     display: inline-block;
+
     column-gap: 2em;
     text-align: left;
+
     width: 100%;
 
}
 
}
.loglist thead,
+
.loglist.cols .listedlogs {
.loglist tfoot,
+
     white-space: nowrap;
.loglist .hide {
 
     display: none;
 
 
}
 
}
table.wikitable.loglist {
+
.loglist.cols .pager {
    margin: 1em 0;
+
    display: none;
    background-color: transparent;
 
    border: none;
 
    border-collapse: collapse;
 
    color: inherit;
 
 
}
 
}
table.wikitable.loglist > tr > th,
+
.loglist h2 {
table.wikitable.loglist > tr > td,
+
    break-inside: avoid;
table.wikitable.loglist > * > tr > th,
+
    page-break-inside: avoid;
table.wikitable.loglist > * > tr > td {
+
    -webkit-column-break-inside: avoid;
     border: none;
+
     column-span: all;
 
}
 
}
.loglist td {
+
.loglist h2:first-of-type {
     vertical-align: top;
+
     margin-top: 0;
 
}
 
}
.loglist ul {
+
.loglist .mw-headline {
     margin: 0;
+
     display: block;
    list-style-position: inside;
 
 
}
 
}
}}{{#vardefine:rows|5}}{{#vardefine:page|1}}{{#vardefine:lognum|1}}{{#vardefine:thePage|{{#titleparts: {{PAGENAME}} | 1 | 1}} }}{{#dplvar:set|logLevel|{{#ifexist: {{#var:thePage}}/AdvLog|Adv|Bas}} }}{{#ifeq: {{#dplvar:logLevel}} | Adv |{{:{{#var:thePage}}/AdvLog}}| }}{{#dplvar:set|checkIt|{{uc:{{{1}}}}}}}{{#ifeq:{{#dplvar:checkIt}}|DATE|{{#dplvar:set|useDates|true}}|}}{{#arraydefine:loglist|{{#regex:{{#regexall:{{#dpl:
+
}}{{#vardefine:rows|{{{rows|100}}}}}{{#vardefine:year|0000}}{{#vardefine:block|1}}{{#vardefine:lognum|1}}{{#vardefine:sofar|1}}{{#vardefine:thePage|{{#ifeq:{{{special}}}|all||{{#titleparts: {{PAGENAME}} | 1 | 1}} }} }}{{#dplvar:set|logLevel|{{#ifexist: {{#var:thePage}}/AdvLog|Adv|Bas}} }}{{#ifeq: {{#dplvar:logLevel}} | Adv |{{:{{#var:thePage}}/AdvLog}}| }}{{#dplvar:set|checkIt|{{uc:{{{1}}}}}}}{{#ifeq:{{#dplvar:checkIt}}|DATE|{{#dplvar:set|useDates|true}}|}}{{#arraydefine:loglist|{{#regex:{{#regexall:{{#dpl:
 
| namespace=
 
| namespace=
 
| linksto={{#var:thePage}}
 
| linksto={{#var:thePage}}
Line 48: Line 42:
 
| noresultsheader={{#ifeq: {{#dplvar:logLevel}} | Adv |&nbsp;|None yet!<br />Why not check out the [[Log Tutorial]]?}}
 
| noresultsheader={{#ifeq: {{#dplvar:logLevel}} | Adv |&nbsp;|None yet!<br />Why not check out the [[Log Tutorial]]?}}
 
| resultsheader={{#ifeq: {{#dplvar:logLevel}} | Adv | <center>'''Also:'''</center> \n| }}
 
| resultsheader={{#ifeq: {{#dplvar:logLevel}} | Adv | <center>'''Also:'''</center> \n| }}
}}|/(\d{10}.+\^)/U|`}}|/\^/|}}|`|sort=asc}}
+
}}|/(\d{10}.+\^)/U|`}}|/\^/|}}|`|sort=asc}}{{#vardefine:total|{{#arraysize:loglist}}}}
<div class="loglist">{{#ifeq:{{#dplvar:useDates}}|true|<div|<ul}} class="listedlogs" id="block1">{{#arrayprint:loglist|<br/>|@@@@|{{#arraydefine:log|@@@@|~}}{{#ifeq:{{#dplvar:useDates}}|true|{{#arrayindex:log|1}}:|<li>}} {{#arrayindex:log|3}}{{#vardefine:lognum|{{#expr:{{#var:lognum}}+1}}}}{{#ifexpr:{{#var:lognum}}>5|{{#vardefine:lognum|1}}{{#vardefine:page|{{#expr:{{#var:page}}+1}}}}{{#ifeq:{{#dplvar:useDates}}|true|</div><div|</ul><ul}} class="listedlogs" id="block{{#var:page}}">|}}}}{{#ifeq:{{#dplvar:useDates}}|true|</div>|</ul>}}</div>
+
<div class="loglist {{#if:{{{cols|}}}|cols|}}">{{#ifeq:{{#dplvar:useDates}}|true|<div|<ul}} class="listedlogs" id="Block1">{{#arrayprint:loglist||@@@@|{{#arraydefine:log|@@@@|~}}{{#ifeq:{{{years}}}|yes|{{#ifeq:{{#vardefineecho:newyear|{{#regex:{{#arrayindex:log|1}}|/\d{4}/}}}}|{{#var:year}}||<h2>{{#vardefineecho:year|{{#var:newyear}}}}</h2>}}|}}{{#ifeq:{{#dplvar:useDates}}|true|<div class="log">{{#arrayindex:log|1}}:|<li>}} [[{{#arrayindex:log|4}}|<span title="{{#regex:{{#regex:{{#regex:{{#arrayindex:log|3}}|/\[\[(.+)\x7C(.+)\]\]/|$2}}|/\[\[(.+)\]\]/|$1}}|/"/|&quot;}}">{{#arrayindex:log|5}}</span>]]{{#ifeq:{{#dplvar:useDates}}|true|</div>|</li>}}{{#vardefine:sofar|{{#expr:{{#var:sofar}}+1}}}}{{#vardefine:lognum|{{#expr:{{#var:lognum}}+1}}}}{{#ifexpr:{{#var:lognum}}>{{#var:rows}} or {{#var:sofar}} > {{#var:total}}|<div class="pager">{{#ifeq:{{#var:block}}|1||<span class="less">[[#Block{{#expr:{{#var:block}}-1}}|[less]]]</span>}}<span class="total">{{#expr:({{#var:block}}-1)*{{#var:rows}}+1}}-{{#ifexpr:{{#var:sofar}} > {{#var:total}}|{{#var:total}}|{{#expr:{{#var:block}}*{{#var:rows}}}}}} of {{#var:total}}</span>{{#ifexpr:{{#var:block}}*{{#var:rows}}>={{#var:total}}||<span class="more">[[#Block{{#vardefineecho:block|{{#expr:{{#var:block}}+1}}}}|[more]]]</span>}}</div>{{#vardefine:lognum|1}}{{#ifeq:{{#dplvar:useDates}}|true|</div><div|</ul><ul}} class="listedlogs" id="Block{{#var:block}}">|}}}}{{#ifeq:{{#dplvar:useDates}}|true|</div>|</ul>}}</div>

Latest revision as of 00:46, 12 March 2018