Template:Problems: Difference between revisions

Jump to navigation Jump to search
(Should be ready now)
(Save initial regexp query into separate variables, for later use. Testing to make sure I didn't mess anything)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#vardefineecho:tl_problems_list|{{{1}}}}}{{#if:{{#regexall:{{#var:tl_problems_list}}|(\=\=\=\s(?!\<s\>).*?(?!\<\/s\>)\s\=\=\=)||}}|{{#vardefine:tl_problems_list_matched|true}}[[Category:Pages with active problems]]}}{{#if:{{#regexall:{{#var:tl_problems_list}}|(\=\=\=\s\<s\>.*?\<\/s\>\s\=\=\=)||}}|{{#vardefine:tl_problems_list_matched|true}}[[Category:Pages with fixed problems]]}}{{#if:{{#var:tl_problems_list_matched}}||[[Category:Pages with misformatted problems]]}}|There's no known problems with this {{#if:{{{type|}}}|{{{type|}}}|game}}.}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>{{#if:{{{1|}}}|{{#vardefineecho:tl_problems_list|{{{1}}}}}{{#vardefine:tl_problems_list_active|{{#regexall:{{#var:tl_problems_list}}|(\=\=\=\s(?!\<s\>).*?(?!\<\/s\>)\s\=\=\=)|¯}}}}{{#vardefine:tl_problems_list_fixed|{{#regexall:{{#var:tl_problems_list}}|(\=\=\=\s\<s\>.*?\<\/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's no known problems with this {{#if:{{{type|}}}|{{{type|}}}|game}}.}}</includeonly><noinclude>{{documentation}}</noinclude>