Rosetta Code:Village Pump/Language Page Links: Difference between revisions

Idea + Removal of old Idea that was Wrong
(Formatting+Comment+Comment)
(Idea + Removal of old Idea that was Wrong)
Line 16:
::--[[User:Short Circuit|Michael Mol]] 15:45, 24 January 2010 (UTC)
 
:::Another solution I can see is if there was some server-side language (well, I guess JS would work too..) that redirects ?lang=4D to #4D (a MW extension might work there, appending "?lang=CategoryName" to the links to things within Categories). Another thing I just thought of is adding some JavaScript to the Category template that checks for all links in the first table under the heading "Pages in Category |lang|" and append #|lang| to the href attribute. --[[User:BR|BR]]
 
:::I like the first option. The second is unnecessarily complex, and the third fails if, for example, a category page has a link to a specific example or other section of another page, because the server can't tell if there was ''already'' a #fragment, but JS can. —[[User:Kevin Reid|Kevin Reid]] 17:02, 24 January 2010 (UTC)
 
::::Well, wouldn't the JS fail for the same reason? --[[User:BR|BR]]
Anonymous user