Template talk:Libheader

From Rosetta Code
Revision as of 11:17, 22 September 2008 by Underscore (talk | contribs)

What if we changed this template so it made a subheading for the library? That way people browsing Solutions by Library could see their library in the TOC. --Mwn3d 19:19, 15 September 2008 (UTC)

I put a little demo of what I want it to do in the Sandbox. --Mwn3d 16:17, 16 September 2008 (UTC)

I understand the motivation for this idea, but I don't think it makes much sense in general, because the template isn't always used to begin an alternative implementation. Often it begins the only implementation, in which case the language's section would have all its content in a single subsection, which would be silly. And when it does begin an alternative, one of the other alternatives is likely to not use any library, so we'd end up with something like this:
  • Foo Programming Language
    • Implementation without any libraries.
    • Bar Library
      • Implementation with the library.
Since the implementation without any libraries and the one with a library are logically on the same footing, it's counterintuitive for them to be in different levels of the section hierarchy. I suppose we could do something like this:
  • Foo Programming Language
    • Core language
      • Implementation without any libraries.
    • Bar Library
      • Implementation with the library.
but that's pretty ugly, I think. —Underscore 11:17, 22 September 2008 (UTC)