Template:Header: Difference between revisions

I think I fixed it again
(i think this should fix the C# problem)
(I think I fixed it again)
Line 1:
{{#if: {{{2|}}} | <span id="{{{1}}}">[[:Category:{{{1}}}|{{{2}}}]]</span>|{{#switch: {{lc: {{{1|}}} }}|c sharp=<span id="C sharp">[[:Category:C sharp|C#]]</span>|f sharp=<span id="F sharp">[[:Category:F sharp|F#]]</span>|[[:Category:{{{1}}}|{{{1}}}]]}} }}[[Category:{{{1}}}]]{{#set:implemented in language={{{1}}} }}<noinclude>
| {{#switch: {{lc: {{{1|}}} }}
|c sharp=<span id="C sharp">[[:Category:C sharp|C#]]</span>
|f sharp=<span id="F sharp">[[:Category:F sharp|F#]]</span>
|[[:Category:{{{1}}}|{{{1}}}]]
}}
}}
[[Category:{{{1}}}]]{{#set:implemented in language={{{1}}} }}
<noinclude>
 
This is intended to be used for the header of a programming language solution. Used within the header, it adds a category with the same name. It can be invoked two ways:
Line 16 ⟶ 8:
 
expands to:
 
<code><nowiki>
==[[Your Language Here]] [[Category:Your Language Here]]==
Line 28 ⟶ 19:
 
expands to:
 
<code><nowiki>
==[[Your Language Here|Display Name]] [[Category:Your Language Here]]==
Anonymous user