Difference between revisions of "User:Oliver/Test"

From From The Ashes Wiki
Jump to: navigation, search
Line 29: Line 29:
 
}}{{#vardefine:rows|{{{rows|100}}}}}{{#vardefine:year|0000}}{{#vardefine:block|1}}{{#vardefine:lognum|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:
 
}}{{#vardefine:rows|{{{rows|100}}}}}{{#vardefine:year|0000}}{{#vardefine:block|1}}{{#vardefine:lognum|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}}
 
| notlinksfrom={{#var:thePage}}/AdvLog
 
 
| replaceintitle=/^.*?\s-\s/,
 
| replaceintitle=/^.*?\s-\s/,
 
| replaceintitle=/^\d.*?-\d.*?-\d.*?: /,
 
| replaceintitle=/^\d.*?-\d.*?-\d.*?: /,
Line 43: Line 41:
 
| 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}}
<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|{{#arrayindex:log|1}}:|<li>}} [[{{#arrayindex:log|4}}|<span title="{{#regex:{{#regex:{{#arrayindex:log|3}}|\[\[((.+)\|(.*)|(.*))\]\]|/3/4}}|/"/|&quot;}}">{{#arrayindex:log|5}}</span>]]{{#vardefine:lognum|{{#expr:{{#var:lognum}}+1}}}}{{#ifexpr:{{#var:lognum}}>{{#var:rows}}|{{#vardefine:lognum|1}}<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}}-{{#expr:{{#var:block}}*{{#var:rows}}}} of {{#vardefineecho:total|{{#arraysize:loglist}}}}</span><span class="more">[[#Block{{#vardefineecho:block|{{#expr:{{#var:block}}+1}}}}|[more]]]</span></div>{{#ifeq:{{#dplvar:useDates}}|true|</div><div|</ul><ul}} class="listedlogs" id="Block{{#var:block}}">|<br/>}}}}{{#ifeq:{{#var:block}}|1||<div class="pager"><span class="less">[[#Block{{#expr:{{#var:block}}-1}}|[less]]]</span><span class="total">{{#expr:({{#var:block}}-1)*{{#var:rows}}+1}}-{{#var:total}} of {{#var:total}}</span></div>}}{{#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|{{#arrayindex:log|1}}:|<li>}} [[{{#arrayindex:log|4}}|<span title="{{#regex:{{#regex:{{#arrayindex:log|3}}|/\[\[(.+)\x7C(.+)\]\]/|$2}}|/"/|&quot;}}">{{#arrayindex:log|5}}</span>]]{{#vardefine:lognum|{{#expr:{{#var:lognum}}+1}}}}{{#ifexpr:{{#var:lognum}}>{{#var:rows}}|{{#vardefine:lognum|1}}<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}}-{{#expr:{{#var:block}}*{{#var:rows}}}} of {{#vardefineecho:total|{{#arraysize:loglist}}}}</span><span class="more">[[#Block{{#vardefineecho:block|{{#expr:{{#var:block}}+1}}}}|[more]]]</span></div>{{#ifeq:{{#dplvar:useDates}}|true|</div><div|</ul><ul}} class="listedlogs" id="Block{{#var:block}}">|<br/>}}}}{{#ifeq:{{#var:block}}|1||<div class="pager"><span class="less">[[#Block{{#expr:{{#var:block}}-1}}|[less]]]</span><span class="total">{{#expr:({{#var:block}}-1)*{{#var:rows}}+1}}-{{#var:total}} of {{#var:total}}</span></div>}}{{#ifeq:{{#dplvar:useDates}}|true|</div>|</ul>}}</div>

Revision as of 22:53, 2 January 2018