Template talk:Header

From Rosetta Code
Revision as of 06:31, 7 November 2019 by rosettacode>Gerard Schildberger (→‎New version: added a comment.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

New version

Although there are already several edits to this template it still doesn't work properly for the special cases C# and F#. For example the current version of the C# solution for Call a function displays the language name correctly but puts the solution into Category:C Sharp which is wrong because it should be put into Category:C sharp (s instead of S).

I therefore have written a new version which gets rid off the second parameter and allows users to use either C#, C sharp or C Sharp as the language name (similarly for F#): User:AndiPersti/Sandbox.

You can test this version on Special:ExpandTemplates. Just put {{User:AndiPersti/Sandbox|language}} into the Input text field and press OK.

Any comments? --Andreas Perstinger (talk) 15:23, 13 March 2016 (UTC)

Seems to work for the tests I ran, though I never noticed the original problem (and that surprises me -- category hast not been case sensitive for the example I have tried, though granted, I have not tried many examples...). I did notice an extra space in your new version. I don't know if that matters --Rdm (talk) 20:51, 13 March 2016 (UTC)
Category names (and page names in general) are only case insensitive for the first letter. All other letters in the name are case sensitive. The extra space doesn't matter AFAIK but it makes the template code a little bit easier to read IMHO. Thanks for testing. --Andreas Perstinger (talk) 07:08, 14 March 2016 (UTC)

Dart or Dart?

I don't understand why Dart needs an alias of Dart.     -- Gerard Schildberger (talk) 06:28, 7 November 2019 (UTC)