Template:Problems: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#ifpageincat:Virtual Console games|{{#if:{{#ifpageincat:SNES games|{{#regexall:{{GlobalProblems|Super NES}}|/\=\=\=.?!\<s\>(.*?)?!\<\/s\>.\=\=\=/|<h3> $1 (global problem)[[Category:Pages with active problems]] <h3>}}|}}{{#ifpageincat:Nintendo 64 games|{{#regexall:{{GlobalProblems|Nintendo 64}}|/\=\=\=.?!\<s\>(.*?)?!\<\/s\>.\=\=\=/|<h3> $1 (global problem)[[Category:Pages with active problems]] <h3>}}|}}||{{#vardefine:no_active_gp|true}}}}|}}
<includeonly>{{#ifpageincat:Virtual Console games|{{#if:{{#ifpageincat:SNES games|{{#regexall:{{GlobalProblems|Super NES}}|/\=\=\=.?!\<s\>(.*?)?!\<\/s\>.\=\=\=/|<h3> $1 (global problem)[[Category:Pages with active problems]] <h3>}}|}}{{#ifpageincat:Nintendo 64 games|{{#regexall:{{GlobalProblems|Nintendo 64}}|/\=\=\=.?!\<s\>(.*?)?!\<\/s\>.\=\=\=/|<h3> $1 (global problem)[[Category:Pages with active problems]] <h3>}}|}}||{{#vardefine:no_active_gp|true}}}}|}}
{{#if:{{{1|}}}|{{#vardefineecho:tl_problems_list|{{{1}}}}}{{#vardefine:tl_problems_list_active|{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.(?!\<s\>).*?(?!\<\/s\>).\=\=\=/|¯}}}}{{#vardefine:tl_problems_active_count|{{#expr:{{#len:{{#regexall:{{#var:tl_problems_list_active}}|(¯)|}}}}+1}}}}{{#vardefine:tl_problems_list_fixed|{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.\<s\>.*?\<\/s\>.\=\=\=/|¯}}}}{{#vardefine:tl_problems_fixed_count|{{#expr:{{#len:{{#regexall:{{#var:tl_problems_list_fixed}}|(¯)|}}}}+1}}}}{{#if:{{#var:tl_problems_list_active}}|[[Category:Pages with active problems]]{{#loop:tl_problems_i|0|{{#var:tl_problems_active_count}}|{{#if:{{#regexall:{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.(?!\<s\>).*?(?!\<\/s\>).\=\=\=([\s\S]*?(?=\n\={{!}}$))/||{{#var:tl_problems_i}}|1}}|/\x5Bhttps\:\/\/dolp\.in\/i.*\x5D/}}||{{#vardefine:tl_problems_active_missing_issue|true}}}}}}}}{{#if:{{#var:tl_problems_list_fixed}}|[[Category:Pages with fixed problems]]}}{{#if:{{#var:tl_problems_list_active}}{{#var:tl_problems_list_fixed}}||[[Category:Pages with misformatted problems]]}}{{#if:{{#var:tl_problems_active_missing_issue}}|[[Category:Pages with active problems missing issue links]]}}|There are no known problems with this {{#if:{{{type|}}}|{{{type|}}}|title}}.}}{{#ifpageincat:Virtual Console games|{{#if:{{#ifpageincat:SNES games|{{#regexall:{{GlobalProblems|Super NES}}|/\=\=\=.?!\<s\>(.*?)?!\<\/s\>.\=\=\=/|<h3> $1 (global problem)[[Category:Pages with active problems]] <h3>}}|}}{{#ifpageincat:Nintendo 64 games|{{#regexall:{{GlobalProblems|Nintendo 64}}|/\=\=\=(.*?)\<\/s\>.\=\=\=/|<h3> $1 (global problem)</s>[[Category:Pages with fixed problems]] <h3>}}|}}||{{#if:{{#var:no_active_gp}}|[[Category:Pages with missing VC system]]|}}|}}</includeonly><noinclude>{{documentation}}</noinclude>
{{#if:{{{1|}}}|{{#vardefineecho:tl_problems_list|{{{1}}}}}{{#vardefine:tl_problems_list_active|{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.(?!\<s\>).*?(?!\<\/s\>).\=\=\=/|¯}}}}{{#vardefine:tl_problems_active_count|{{#expr:{{#len:{{#regexall:{{#var:tl_problems_list_active}}|(¯)|}}}}+1}}}}{{#vardefine:tl_problems_list_fixed|{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.\<s\>.*?\<\/s\>.\=\=\=/|¯}}}}{{#vardefine:tl_problems_fixed_count|{{#expr:{{#len:{{#regexall:{{#var:tl_problems_list_fixed}}|(¯)|}}}}+1}}}}{{#if:{{#var:tl_problems_list_active}}|[[Category:Pages with active problems]]{{#loop:tl_problems_i|0|{{#var:tl_problems_active_count}}|{{#if:{{#regexall:{{#regexall:{{#var:tl_problems_list}}|/\=\=\=.(?!\<s\>).*?(?!\<\/s\>).\=\=\=([\s\S]*?(?=\n\={{!}}$))/||{{#var:tl_problems_i}}|1}}|/\x5Bhttps\:\/\/dolp\.in\/i.*\x5D/}}||{{#vardefine:tl_problems_active_missing_issue|true}}}}}}}}{{#if:{{#var:tl_problems_list_fixed}}|[[Category:Pages with fixed problems]]}}{{#if:{{#var:tl_problems_list_active}}{{#var:tl_problems_list_fixed}}||[[Category:Pages with misformatted problems]]}}{{#if:{{#var:tl_problems_active_missing_issue}}|[[Category:Pages with active problems missing issue links]]}}|There are no known problems with this {{#if:{{{type|}}}|{{{type|}}}|title}}.}}{{#ifpageincat:Virtual Console games|{{#if:{{#ifpageincat:SNES games|{{#regexall:{{GlobalProblems|Super NES}}|/\=\=\=.?!\<s\>(.*?)?!\<\/s\>.\=\=\=/|<h3> $1 (global problem)[[Category:Pages with active problems]] <h3>}}|}}{{#ifpageincat:Nintendo 64 games|{{#regexall:{{GlobalProblems|Nintendo 64}}|/\=\=\=(.*?)\<\/s\>.\=\=\=/|<h3> $1 (global problem)</s>[[Category:Pages with fixed problems]] <h3>}}|}}||{{#if:{{#var:no_active_gp}}|[[Category:Pages with missing VC system]]|}}}}|}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 22:18, 28 November 2016

[edit] [purge] Template documentation

Add common problem text to pages /wo problems, and add appropriate Category:Pages with active problems or Category:Pages with fixed problems to those that do.

Usage

{{Problems|{{#vardefineecho:problems|
=== Problem ===
Problem text. Refer {{issue|<Issue ID>}}.

{{Problems/Problem Sub-template Name}}

=== <s>Fixed Problem</s> ===
Problem text. Fixed in {{revision|<revision ID>}}.
}}}}

Example

There are no known problems with this title.

Sub-Templates

Problem sub-templates add common Problem, Emulation Information, or Enhancements subsections to pages.