Rosetta Code:Village Pump/C sharp bug: Difference between revisions

Should {{header|C#}} work?
No edit summary
(Should {{header|C#}} work?)
Line 17:
:::I fixed the header template. It should correct itself eventually. The site needs to update each page with the new template content. You can check the progress in the "job queue length" section [[Special:Statistics|here]]. It should be done when it gets down to 0 (or close to 0...I forget if there are background jobs that constantly go in the queue). I did a stupid and fixed it incorrectly, so it may take extra time because I had to correct that. In the meantime you should see the number of tasks in the C# category going up slowly (and the F# category because I suspect it had the same problem). --[[User:Mwn3d|Mwn3d]] 12:51, 1 July 2011 (UTC)
::::Muuuuch faster than one by one ! Thanks [[User:Toucan|Toucan]] 19:30, 1 July 2011 (UTC)
 
=== Should <nowiki>{{header|C#}}</nowiki> work? ===
Since Mwn3d fixed the template, <nowiki>{{header|C sharp|C#}} and {{header|C sharp}}</nowiki> are now both correct. This is because the template has a special case for "C sharp" where <nowiki>{{header|C sharp}}</nowiki> acts like <nowiki>{{header|C sharp|C#}}</nowiki>.
 
Should there be another special case for <nowiki>{{header|C#}}</nowiki>? I have put the code for this in [[Template:Header beta]]:
 
<pre>{{#if: {{{2|}}}
| <span id="{{{1}}}">[[:Category:{{{1}}}|{{{2}}}]]</span> [[Category:{{{1}}}]] {{
#set:implemented in language={{{1}}} }}
|{{#switch: {{ucfirst: {{{1|}}} }}
|C#|C sharp=<span id="C sharp">[[:Category:C sharp|C#]]</span> [[Category:C sharp]] {{
#set:implemented in language=C sharp}}
|F#|F Sharp=<span id="F Sharp">[[:Category:F Sharp|F#]]</span> [[Category:F Sharp]] {{
#set:implemented in language=F Sharp}}
| [[:Category:{{{1}}}|{{{1}}}]] [[Category:{{{1}}}]] {{
#set:implemented in language={{{1}}} }}
}}
}}</pre>
 
This would cause <nowiki>{{header|C#}}</nowiki> to act like <nowiki>{{header|C sharp|C#}}</nowiki>. However, plain <nowiki>[[C#]]</nowiki> links would still be broken. I now think that <nowiki>{{header|C#}}</nowiki> should remain broken like <nowiki>[[C#]]</nowiki>. --[[User:Kernigh|Kernigh]] 20:50, 15 July 2011 (UTC)
Anonymous user