Template:GlobalProblems/sandbox/doc: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 10: Line 10:


Because this template always has to call {{tl|GlobalProblems/Virtual Console}} and display bugs from there, any page that calls GlobalProblems as <code><nowiki>{{GlobalProblems|Virtual Console}}</nowiki></code> (as in just one page, [[Virtual Console]]) causes the template to call {{tl|GlobalProblems/Virtual Console}} twice. This is bad behavior but it's harmless, and trying to avoid it would make it slower for every other page to benefit that one single page. The Virtual Console page's {{tl|GlobalProblems}} call also introduces the possibility of accidentally displaying issues from {{tl|GlobalProblems/Virtual Console}} twice, so extra conditional statements had to be added for that special case. All of the code related to GlobalProblems/Virtual Console can be seen [https://wiki.dolphin-emu.org/index.php?title=Template:GlobalProblems/sandbox&diff=149176&oldid=149175 here].
Because this template always has to call {{tl|GlobalProblems/Virtual Console}} and display bugs from there, any page that calls GlobalProblems as <code><nowiki>{{GlobalProblems|Virtual Console}}</nowiki></code> (as in just one page, [[Virtual Console]]) causes the template to call {{tl|GlobalProblems/Virtual Console}} twice. This is bad behavior but it's harmless, and trying to avoid it would make it slower for every other page to benefit that one single page. The Virtual Console page's {{tl|GlobalProblems}} call also introduces the possibility of accidentally displaying issues from {{tl|GlobalProblems/Virtual Console}} twice, so extra conditional statements had to be added for that special case. All of the code related to GlobalProblems/Virtual Console can be seen [https://wiki.dolphin-emu.org/index.php?title=Template:GlobalProblems/sandbox&diff=149176&oldid=149175 here].
== Issues ==
*Heading underline will touch infobox while others don't
*[edit] button will be available where the others don't normally appear, like in edit preview or protected page