Template:GlobalProblems: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
mNo edit summary
m (only set tl_globalproblems_visible when the template's actually visible)
Line 7: Line 7:
Error handling and variable declarations
Error handling and variable declarations


-->{{#if:{{#var:tl_globalproblems_platform}}|{{#ifexist:Template:GlobalProblems/{{#var:tl_globalproblems_platform}}|[[Category:Pages using GlobalProblems]]{{#vardefine:tl_globalproblems_visible|true}}{{GlobalProblems/Virtual Console}}{{GlobalProblems/{{#var:tl_globalproblems_platform}}}}<!--
-->{{#if:{{#var:tl_globalproblems_platform}}|{{#ifexist:Template:GlobalProblems/{{#var:tl_globalproblems_platform}}|[[Category:Pages using GlobalProblems]]{{GlobalProblems/Virtual Console}}{{GlobalProblems/{{#var:tl_globalproblems_platform}}}}<!--


Custom header made to have working [edit] link
Custom header made to have working [edit] link
Line 15: Line 15:
Problem display logic
Problem display logic


-->{{#if:{{#var:tl_globalproblems_{{#regex:{{#var:tl_globalproblems_platform}}|/\s+/|_}}_active}}{{#var:tl_globalproblems_{{#regex:{{#var:tl_globalproblems_platform}}|/\s+/|_}}_fixed}}{{#var:tl_globalproblems_Virtual_Console_active}}{{#var:tl_globalproblems_Virtual_Console_fixed}}|{{#ifpageincat:Platforms||__TOC__}}{{#var:tl_globalproblems_header}}
-->{{#if:{{#var:tl_globalproblems_{{#regex:{{#var:tl_globalproblems_platform}}|/\s+/|_}}_active}}{{#var:tl_globalproblems_{{#regex:{{#var:tl_globalproblems_platform}}|/\s+/|_}}_fixed}}{{#var:tl_globalproblems_Virtual_Console_active}}{{#var:tl_globalproblems_Virtual_Console_fixed}}|{{#vardefine:tl_globalproblems_visible|true}}{{#ifpageincat:Platforms||__TOC__}}{{#var:tl_globalproblems_header}}
Problems that may occur with any {{#var:tl_globalproblems_platform}} title on Dolphin are listed below.
Problems that may occur with any {{#var:tl_globalproblems_platform}} title on Dolphin are listed below.
{{#ifeq:{{#var:tl_globalproblems_platform}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{#var:tl_globalproblems_platform}}|/\s+/|_}}_active}}}}{{#var:tl_globalproblems_Virtual_Console_active}}{{#ifeq:{{#var:tl_globalproblems_platform}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{#var:tl_globalproblems_platform}}|/\s+/|_}}_fixed}}}}{{#var:tl_globalproblems_Virtual_Console_fixed}}|{{#ifpageincat:Platforms|{{#var:tl_globalproblems_header}}
{{#ifeq:{{#var:tl_globalproblems_platform}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{#var:tl_globalproblems_platform}}|/\s+/|_}}_active}}}}{{#var:tl_globalproblems_Virtual_Console_active}}{{#ifeq:{{#var:tl_globalproblems_platform}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{#var:tl_globalproblems_platform}}|/\s+/|_}}_fixed}}}}{{#var:tl_globalproblems_Virtual_Console_fixed}}|{{#ifpageincat:Platforms|{{#vardefine:tl_globalproblems_visible|true}}{{#var:tl_globalproblems_header}}
There are no known global problems with {{#var:tl_globalproblems_platform}} titles on Dolphin.}}}}<!--
There are no known global problems with {{#var:tl_globalproblems_platform}} titles on Dolphin.}}}}<!--



Revision as of 08:05, 18 September 2017

[edit] [purge] Template documentation

This template outputs a standardized section containing problems that occur in all Virtual Console titles or in all titles of a given Virtual Console platform. It's embedded in all Virtual Console pages, so, adding a new issue here will automatically show it in the game pages and in the Virtual Console lists. Every platform has its own page:

Additionally, we have the Virtual Console page, which includes problems that occur with any Virtual Console title, regardless of the platform.

Adding/Removing problems

To edit the global problems, you need to edit the corresponding subpage as listed above. When you're editing, you'll see something like this (example taken from the Arcade subpage):

{{#vardefine:tl_globalproblems_Arcade_active|



}}{{#vardefine:tl_globalproblems_Arcade_fixed|



}}<noinclude>{{#var:tl_globalproblems_{{#regex:{{SUBPAGENAME}}|/\s+/|_}}_active}}{{#var:tl_globalproblems_{{#regex:{{SUBPAGENAME}}|/\s+/|_}}_fixed}}</noinclude>

Problems that occur both in the latest stable release and in the latest development version goes to the "active section":

{{#vardefine:tl_globalproblems_Arcade_active|
=== Test issue ===
Test issue makes all Arcade titles crash. The current workaround is using Single Core mode.

=== Video Glitch ===
Video glitch occur with all Arcade titles if External Framebuffer is off.

}}[...]

Problems that occur in the latest stable release but fixed in the latest development version are moved to the "fixed" section, and their titles are stroked out:

[...]{{#vardefine:tl_globalproblems_Arcade_fixed|
=== <s>Test issue</s> ===
Test issue makes all Arcade titles crash. The current workaround is using Single Core mode. Fixed in {{revision|3.5-1245}}}.

=== <s>Video Glitch</s> ===
Video glitch occur with all Arcade titles if External Framebuffer is off. Fixed in {{revision|3.5-1174}}}.

}}[...]

The other sections of the template shouldn't be edited, as they provide the functionality of the Global Problems template. All problems in the "fixed" section should be purged when a new stable version is released (they're tagged under Category:Pages with fixed problems for easier access). After finishing your edits, just click on the "Save page" button and the issues you edited will automatically be shown in the platform list and on all game pages for that platform.

Notes

  • Any pages calling this template twice on one page or without proper platform categories are added to Category:Pages calling GlobalProblems template improperly.
  • After adding/removing a problem, the wiki may take some time to refresh. It's normal.
    • This can be circumvented by using purge to immediately refresh individual pages.
  • Try to keep the number of problems in the Virtual Console page as minimal as possible: these problems are shown in all Virtual Console game pages, so, use with caution.
  • The "Global Problems" section in Virtual Console lists is always shown, even if no global problems exists. It's normal.
  • The "Global Problems" section in game pages may not show. It's normal, this section will appear only if at least 1 global problem or 1 platform-specific problem of that game exist. If a global or platform-specific problem are shown, the section will automatically appear again.