Jump to content

Template:Header: Difference between revisions

auto-correct C# -- is there a list of other languages that need this feature?
(Use the SMW silent set function rather than the double-colon link method.)
(auto-correct C# -- is there a list of other languages that need this feature?)
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>|[[: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 13:
</nowiki></code>
 
To catch difficult wiki names like C++ and C#:
 
<code><nowiki>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.