Template:GlobalProblems/sandbox: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
(Two issues: heading underline will touch infobox while others don't, and another one is [edit] button will be available where the others don't normally appear, like in edit preview or protected page)
(nice work so far lucario. maybe we can move the header to one place to make it easier to edit?)
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}}|{{#ifpageincat:Platforms||__TOC__}}<span style="display:block; border-bottom:1px solid #a2a9b1; width:100%; 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 style="padding-left:14px;"><nowiki>[</nowiki><span class="plainlinks">[{{fullurl:Template:GlobalProblems/{{{1}}}|action=edit}} edit]</span><nowiki>]</nowiki></span></span>
<includeonly>{{#ifeq:{{#var:tl_globalproblems_visible|false}}|false|{{#if:{{{1|}}}|{{GlobalProblems/Virtual Console}}{{#ifexist:Template:GlobalProblems/{{{1}}}|{{GlobalProblems/{{{1}}}}}|{{#vardefine:tl_globalproblems_mode|error}}}}{{#vardefine:tl_globalproblems_header|<span style="display:block; border-bottom:1px solid #a2a9b1; width:100%; 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 style="padding-left:14px;"><nowiki>[</nowiki><span class="plainlinks">[{{fullurl:Template:GlobalProblems/{{{1}}}|action=edit}} edit]</span><nowiki>]</nowiki></span></span>}}{{#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.
Problems that may occur with any {{{1}}} title on Dolphin are listed below.
{{#ifeq:{{{1}}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_active}}
{{#ifeq:{{{1}}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_active}}
}}{{#var:tl_globalproblems_Virtual_Console_active}}
}}{{#var:tl_globalproblems_Virtual_Console_active}}
{{#ifeq:{{{1}}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_fixed}}
{{#ifeq:{{{1}}}|Virtual Console||{{#var:tl_globalproblems_{{#regex:{{{1|}}}|/\s+/|_}}_fixed}}
}}{{#var:tl_globalproblems_Virtual_Console_fixed}}|{{#ifpageincat:Platforms|<span style="display:block; border-bottom:1px solid #a2a9b1; width:100%; margin-top:1em; 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 style="padding-left:14px;"><nowiki>[</nowiki><span class="plainlinks">[{{fullurl:Template:GlobalProblems/{{{1}}}|action=edit}} edit]</span><nowiki>]</nowiki></span></span>
}}{{#var:tl_globalproblems_Virtual_Console_fixed}}|
There are no known global problems with {{{1}}} titles on Dolphin.
{{#ifpageincat:Platforms|{{#var:tl_globalproblems_header}}
}}}}{{#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>
There are no known global problems with {{{1}}} titles on Dolphin.}}}}{{#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>

Revision as of 16:03, 4 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)