Template:GlobalProblems/sandbox: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{#var:tl_globalproblems_visible|false}}|false|{{#if:{{{1|}}}|{{GlobalProblems/Virtual Console}}{{#ifexist:Template:GlobalProblems/{{{1}}}|{{GlobalProblems/{{{1}}}}}|{{#vardefine:tl_globalproblems_mode|error}}}}{{#if:{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_active}}{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_fixed}}{{#var:tl_globalproblems_Virtual_Console_active}}{{#var:tl_globalproblems_Virtual_Console_fixed}}|== {{{1}}} Global Problems ==
<includeonly><!--
The following are issues which may occur with any {{{1}}} title in Dolphin. These can be updated [[Template:GlobalProblems/{{{1}}}|here]].
 
{{#ifeq:{{{1|}}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_active}}
Error handling and variable declarations
}}{{#var:tl_globalproblems_Virtual_Console_active}}
 
{{#ifeq:{{{1|}}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_fixed}}
-->{{#ifeq:{{#var:tl_globalproblems_visible|false}}|false|{{#if:{{{1|}}}|{{#vardefine:tl_globalproblems_visible|true}}{{GlobalProblems/Virtual Console}}{{#ifexist:Template:GlobalProblems/{{{1}}}|{{GlobalProblems/{{{1}}}}}|{{#vardefine:tl_globalproblems_mode|error}}}}<!--
}}{{#var:tl_globalproblems_Virtual_Console_fixed}}{{#vardefine:tl_globalproblems_visible|true}}}}|{{#vardefine:tl_globalproblems_mode|error}}}}|{{#vardefine:tl_globalproblems_mode|error}}}}{{#ifeq:{{#var:tl_globalproblems_mode}}|error|[[Category:Pages calling GlobalProblems template improperly]]}}</includeonly><noinclude>{{documentation|Template:GlobalProblems/sandbox/doc}}[[Category:Experimental templates]]</noinclude>
 
Custom header made to have working [edit] link
 
-->{{#vardefine:tl_globalproblems_header|<span style="display:block; overflow:hidden; border-bottom:1px solid #a2a9b1; margin-top:16px; margin-bottom:0.25em; line-height:1.3;"><h2 style="display:inline; border:none;"><span class="mw-headline" id="{{{1}}} Global Problems">{{{1}}} Global Problems</span></h2><span class="mw-editsection"><nowiki>[</nowiki><span class="plainlinks">[{{fullurl:Template:GlobalProblems/{{{1}}}|action=edit}} edit]</span><nowiki>]</nowiki></span></span>}}<!--
 
Problem display logic
 
-->{{#if:{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_active}}{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_fixed}}{{#var:tl_globalproblems_Virtual_Console_active}}{{#var:tl_globalproblems_Virtual_Console_fixed}}|{{#ifpageincat:Platforms||__TOC__}}{{#var:tl_globalproblems_header}}
Problems that may occur with any {{{1}}} title on Dolphin are listed below.
{{#ifeq:{{{1}}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_active}}}}{{#var:tl_globalproblems_Virtual_Console_active}}{{#ifeq:{{{1}}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_fixed}}}}{{#var:tl_globalproblems_Virtual_Console_fixed}}|{{#ifpageincat:Platforms|{{#var:tl_globalproblems_header}}
There are no known global problems with {{{1}}} titles on Dolphin.}}}}<!--
 
More error handling
 
-->|{{#vardefine:tl_globalproblems_mode|error}}}}|{{#vardefine:tl_globalproblems_mode|error}}}}{{#ifeq:{{#var:tl_globalproblems_mode}}|error|[[Category:Pages calling GlobalProblems template improperly]]}}</includeonly><noinclude>{{documentation|Template:GlobalProblems/sandbox/doc}}[[Category:Experimental templates]]</noinclude>

Revision as of 09:03, 5 September 2017

[edit] [purge] Template documentation

Example

Header Issues

  • [edit] button will be available where the others don't normally appear, like in edit preview or protected page
  • [edit] button's link is a very slightly lighter shade of blue compared to normal ones (difference between external and internal links)