Template:Problems: Difference between revisions

Please don't blow up
No edit summary
(Please don't blow up)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#vardefineecho:tl_problems_list|{{{1}}}}}{{#vardefine:tl_problems_list_active|{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.(?!\<s\>).*?(?!\<\/s\>).\=\=\=/|¯}}}}{{#vardefine:tl_problems_list_fixed|{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.\<s\>.*?\<\/s\>.\=\=\=/|¯}}}}{{#if:{{#var:tl_problems_list_active}}|{{#vardefine:tl_problems_active_matched|true}}[[:Category:Pages with active problems]]}}{{#if:{{#var:tl_problems_list_fixed}}|{{#vardefine:tl_problems_fixed_matched|true}}[[:Category:Pages with fixed problems]]}}{{#if:{{#var:tl_problems_active_matched}}{{#var:tl_problems_fixed_matched}}||[[:Category:Pages with misformatted problems]]}}|There are no known problems with this {{#if:{{{type|}}}|{{{type|}}}|title}}.}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>{{#if:{{{1|}}}|{{#vardefineecho:tl_problems_list|{{{1}}}}}{{#vardefine:tl_problems_list_active|{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.(?!\<s\>).*?(?!\<\/s\>).\=\=\=/|¯}}}}{{#vardefine:tl_problems_list_fixed|{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.\<s\>.*?\<\/s\>.\=\=\=/|¯}}}}{{#if:{{#var:tl_problems_list_active}}|{{#vardefine:tl_problems_active_matched|true}}[[Category:Pages with active problems]]
 
{{#vardefine:tl_problems_active_count|{{#expr:{{#len:{{#regexall:{{#var:tl_problems_list_active}}|(¯)|}}}}+1}}}}
{{#vardefine:tl_problems_i|0}}
{{ #while:
|{{#ifexpr:{{#expr:{{#var:tl_problems_i}}}}<{{#var:tl_problems_active_count}}|true}}
|{{#if:{{#regexall:{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.(?!\<s\>).*?(?!\<\/s\>).\=\=\=([\s\S]*?(?=\n\={{!}}$))/||{{#var:tl_problems_i}}|1}}|/\x5Bhttps\:\/\/dolp\.in\/i.*\x5D/}}|true|false}}
}}
 
}}{{#if:{{#var:tl_problems_list_fixed}}|{{#vardefine:tl_problems_fixed_matched|true}}[[Category:Pages with fixed problems]]}}{{#if:{{#var:tl_problems_active_matched}}{{#var:tl_problems_fixed_matched}}||[[Category:Pages with misformatted problems]]}}|There are no known problems with this {{#if:{{{type|}}}|{{{type|}}}|title}}.}}</includeonly><noinclude>{{documentation}}</noinclude>